Skip to content
Permalink
Browse files
8268542: serviceability/logging/TestFullNames.java tests only 1st tes…
…t case

Reviewed-by: sspitsyn
  • Loading branch information
iignatev committed Jun 10, 2021
1 parent a95e64c commit 74007890bb9a3fa3a65683a3f480e399f2b1a0b6
Showing 1 changed file with 2 additions and 1 deletion.
@@ -61,14 +61,15 @@ public static void main(String[] args) throws Exception {
fileName
};
for (String logOutput : validOutputs) {
Asserts.assertFalse(file.exists());
// Run with logging=trace on stdout so that we can verify the log configuration afterwards.
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:logging=trace",
"-Xlog:all=trace:" + logOutput,
"-version");
OutputAnalyzer output = new OutputAnalyzer(pb.start());
output.shouldHaveExitValue(0);
Asserts.assertTrue(file.exists());
file.deleteOnExit(); // Clean up after test
file.delete();
output.shouldMatch("\\[logging *\\].*" + baseName); // Expect to see the log output listed
}
}

0 comments on commit 7400789

Please sign in to comment.