Skip to content

Commit

Permalink
8244142: some hotspot/runtime tests don't check exit code of forked JVM
Browse files Browse the repository at this point in the history
Reviewed-by: gziemski, minqi
  • Loading branch information
iignatev committed Apr 30, 2020
1 parent 47c30db commit bcf3ae8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Expand Up @@ -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);
}
}
Expand Up @@ -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);
}
}
3 changes: 2 additions & 1 deletion test/hotspot/jtreg/runtime/records/RedefineRecord.java
@@ -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
Expand Down Expand Up @@ -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.