mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-28 03:43:21 +00: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
@ -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…
x
Reference in New Issue
Block a user