8141355: PackagePathMismatch.java does not use --state-dir option
authoralundblad
Tue, 03 Nov 2015 22:55:30 +0100
changeset 33554 d29aff18b2f6
parent 33553 9a742b6b95d3
child 33555 c34ba9fa96ac
8141355: PackagePathMismatch.java does not use --state-dir option Summary: Added --state-dir to the PackagePathMismatch.java test. Reviewed-by: jlahoda
langtools/test/tools/sjavac/PackagePathMismatch.java
--- 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");
     }