Skip to content

Commit cba6c04

Browse files
committed
8268542: serviceability/logging/TestFullNames.java tests only 1st test case
Backport-of: 7400789
1 parent 521144c commit cba6c04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/hotspot/jtreg/serviceability/logging/TestFullNames.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,15 @@ public static void main(String[] args) throws Exception {
5959
fileName
6060
};
6161
for (String logOutput : validOutputs) {
62+
Asserts.assertFalse(file.exists());
6263
// Run with logging=trace on stdout so that we can verify the log configuration afterwards.
6364
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:logging=trace",
6465
"-Xlog:all=trace:" + logOutput,
6566
"-version");
6667
OutputAnalyzer output = new OutputAnalyzer(pb.start());
6768
output.shouldHaveExitValue(0);
6869
Asserts.assertTrue(file.exists());
69-
file.deleteOnExit(); // Clean up after test
70+
file.delete();
7071
output.shouldMatch("\\[logging *\\].*" + baseName); // Expect to see the log output listed
7172
}
7273
}

0 commit comments

Comments
 (0)