File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
test/hotspot/jtreg/serviceability/logging Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments