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

Backport-of: 7400789
  • Loading branch information
GoeLin committed Jan 21, 2022
1 parent 521144c commit cba6c0421b573518af401b3c71b6e19a7bf82910
Showing 1 changed file with 2 additions and 1 deletion.
@@ -59,14 +59,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
}
}

1 comment on commit cba6c04

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on cba6c04 Jan 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.