6760226: test/tools/javap/T6622260.java fails with specific locale settings
authormcimadamore
Thu, 16 Oct 2008 18:07:37 +0100
changeset 1481 412a7987385c
parent 1480 a4a66a4c8d84
child 1482 5a6b392f0556
6760226: test/tools/javap/T6622260.java fails with specific locale settings Summary: Changed the regression test in order to make it more robust w.r.t. to locale settings Reviewed-by: jjg
langtools/test/tools/javap/T6622260.java
--- a/langtools/test/tools/javap/T6622260.java	Thu Oct 16 07:39:53 2008 -0700
+++ b/langtools/test/tools/javap/T6622260.java	Thu Oct 16 18:07:37 2008 +0100
@@ -189,10 +189,7 @@
 
     void verify(String output) {
         System.out.println(output);
-        if (output.startsWith("Classfile")) {
-            // make sure to ignore filename
-            output = output.substring(output.indexOf('\n'));
-        }
+        output = output.substring(output.indexOf("Test.java"));
         if (output.indexOf("-") >= 0)
             throw new Error("- found in output");
         if (output.indexOf("FFFFFF") >= 0)