8272335: runtime/cds/appcds/MoveJDKTest.java doesn't check exit codes
Reviewed-by: iklam
This commit is contained in:
parent
9ba8a12cfb
commit
75a06421e5
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -54,7 +54,8 @@ public class MoveJDKTest {
|
||||
String jsaOpt = "-XX:SharedArchiveFile=" + jsaFile;
|
||||
{
|
||||
ProcessBuilder pb = makeBuilder(java_home_src + "/bin/java", "-Xshare:dump", jsaOpt);
|
||||
TestCommon.executeAndLog(pb, "dump");
|
||||
TestCommon.executeAndLog(pb, "dump")
|
||||
.shouldHaveExitValue(0);
|
||||
}
|
||||
{
|
||||
ProcessBuilder pb = makeBuilder(java_home_src + "/bin/java",
|
||||
@ -63,6 +64,7 @@ public class MoveJDKTest {
|
||||
"-Xlog:class+path=info",
|
||||
"-version");
|
||||
OutputAnalyzer out = TestCommon.executeAndLog(pb, "exec-src");
|
||||
out.shouldHaveExitValue(0);
|
||||
out.shouldNotContain("shared class paths mismatch");
|
||||
out.shouldNotContain("BOOT classpath mismatch");
|
||||
}
|
||||
@ -78,6 +80,7 @@ public class MoveJDKTest {
|
||||
"-Xlog:class+path=info",
|
||||
"-version");
|
||||
OutputAnalyzer out = TestCommon.executeAndLog(pb, "exec-dst");
|
||||
out.shouldHaveExitValue(0);
|
||||
out.shouldNotContain("shared class paths mismatch");
|
||||
out.shouldNotContain("BOOT classpath mismatch");
|
||||
}
|
||||
@ -91,7 +94,8 @@ public class MoveJDKTest {
|
||||
"-Xshare:dump",
|
||||
dumptimeBootAppendOpt,
|
||||
jsaOpt);
|
||||
TestCommon.executeAndLog(pb, "dump");
|
||||
TestCommon.executeAndLog(pb, "dump")
|
||||
.shouldHaveExitValue(0);
|
||||
}
|
||||
{
|
||||
String runtimeBootAppendOpt = dumptimeBootAppendOpt + System.getProperty("path.separator") + helloJar;
|
||||
@ -102,6 +106,7 @@ public class MoveJDKTest {
|
||||
"-Xlog:class+path=info",
|
||||
"-version");
|
||||
OutputAnalyzer out = TestCommon.executeAndLog(pb, "exec-dst");
|
||||
out.shouldHaveExitValue(0);
|
||||
out.shouldNotContain("shared class paths mismatch");
|
||||
out.shouldNotContain("BOOT classpath mismatch");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user