changeset 9398:43a1e4ca7ee4

8138574: [TESTBUG] TestBasicLogOutput.java doesn't account for padding Summary: TestBasicLogOutput.java edited to account for padding in tag descriptors Reviewed-by: ddmitriev, hseigel, coleenp Contributed-by: rachel.protacio@oracle.com
author hseigel
date Thu, 01 Oct 2015 15:14:15 -0400
parents 59e6f265dd40
children 38bd261644c0 b04892bbefa5
files test/serviceability/logging/TestBasicLogOutput.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/serviceability/logging/TestBasicLogOutput.java	Wed Sep 30 18:09:40 2015 -0400
+++ b/test/serviceability/logging/TestBasicLogOutput.java	Thu Oct 01 15:14:15 2015 -0400
@@ -35,7 +35,7 @@
     public static void main(String[] args) throws Exception {
         ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-Xlog:all=trace", "-version");
         OutputAnalyzer output = new OutputAnalyzer(pb.start());
-        output.shouldContain("[logging]"); // expected tag(s)
+        output.shouldMatch("\\[logging *\\]"); // expected tag(s)
         output.shouldContain("Log configuration fully initialized."); // expected message
         output.shouldHaveExitValue(0);
     }