8268542: serviceability/logging/TestFullNames.java tests only 1st test case
Reviewed-by: sspitsyn
This commit is contained in:
parent
a95e64ccc1
commit
74007890bb
@ -61,6 +61,7 @@ public class TestFullNames {
|
|||||||
fileName
|
fileName
|
||||||
};
|
};
|
||||||
for (String logOutput : validOutputs) {
|
for (String logOutput : validOutputs) {
|
||||||
|
Asserts.assertFalse(file.exists());
|
||||||
// Run with logging=trace on stdout so that we can verify the log configuration afterwards.
|
// Run with logging=trace on stdout so that we can verify the log configuration afterwards.
|
||||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:logging=trace",
|
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:logging=trace",
|
||||||
"-Xlog:all=trace:" + logOutput,
|
"-Xlog:all=trace:" + logOutput,
|
||||||
@ -68,7 +69,7 @@ public class TestFullNames {
|
|||||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||||
output.shouldHaveExitValue(0);
|
output.shouldHaveExitValue(0);
|
||||||
Asserts.assertTrue(file.exists());
|
Asserts.assertTrue(file.exists());
|
||||||
file.deleteOnExit(); // Clean up after test
|
file.delete();
|
||||||
output.shouldMatch("\\[logging *\\].*" + baseName); // Expect to see the log output listed
|
output.shouldMatch("\\[logging *\\].*" + baseName); // Expect to see the log output listed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user