mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
8141355: PackagePathMismatch.java does not use --state-dir option
Added --state-dir to the PackagePathMismatch.java test. Reviewed-by: jlahoda
This commit is contained in:
parent
7cf539d35e
commit
922ac5ff90
1 changed files with 4 additions and 2 deletions
|
@ -47,8 +47,10 @@ public class PackagePathMismatch extends SjavacBase {
|
|||
"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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue