8141355: PackagePathMismatch.java does not use --state-dir option
Summary: Added --state-dir to the PackagePathMismatch.java test.
Reviewed-by: jlahoda
--- a/langtools/test/tools/sjavac/PackagePathMismatch.java Tue Nov 03 21:29:46 2015 +0100
+++ b/langtools/test/tools/sjavac/PackagePathMismatch.java Tue Nov 03 22:55:30 2015 +0100
@@ -47,8 +47,10 @@
"package a.b.c; class Test { }");
// Compile should fail since package a.b.c does not match path a/x/c.
- String server = "--server:portfile=testserver,background=false";
- int rc1 = compile(server, "-d", classes, src);
+ int rc1 = compile("--server:portfile=testserver,background=false",
+ "-d", classes,
+ "--state-dir=" + classes,
+ src);
if (rc1 == 0)
throw new AssertionError("Compilation succeeded unexpectedly");
}