Skip to content
Permalink
Browse files
Automatic merge of jdk:master into master
  • Loading branch information
duke committed Jun 10, 2021
2 parents 510d9d8 + 7400789 commit 558653083ddd4ca881012f289e8518071fa78124
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 5586530

Please sign in to comment.