Skip to content
Permalink
Browse files

8244142: some hotspot/runtime tests don't check exit code of forked JVM

Reviewed-by: gziemski, minqi
  • Loading branch information
iignatev committed Apr 30, 2020
1 parent 47c30db commit bcf3ae8245d8f07dafe0681a985a29126c32b593
@@ -43,5 +43,6 @@ public static void main(String... args) throws Exception {
"--version");
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldContain("MaxMetaspaceSize is too small.");
output.shouldNotHaveExitValue(0);
}
}
@@ -54,6 +54,7 @@ public static void main(String args[]) throws Exception {

new OutputAnalyzer(ProcessTools.createJavaProcessBuilder(
"-Xbootclasspath/a:" + test_classes, "P.Test")
.start()).shouldContain("Test Passed");
.start()).shouldContain("Test Passed")
.shouldHaveExitValue(0);
}
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2020, 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
@@ -103,6 +103,7 @@ public static void main(String argv[]) throws Exception {
"RedefineRecord");
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldNotContain("processing of -javaagent failed");
output.shouldHaveExitValue(0);
}
}
}

0 comments on commit bcf3ae8

Please sign in to comment.