6760226: test/tools/javap/T6622260.java fails with specific locale settings

Thu, 16 Oct 2008 18:07:37 +0100

author
mcimadamore
date
Thu, 16 Oct 2008 18:07:37 +0100
changeset 146
6fcc8de719f5
parent 145
2c1ef6ec9413
child 147
402183e8d6e1

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

test/tools/javap/T6622260.java file | annotate | diff | comparison | revisions
     1.1 --- a/test/tools/javap/T6622260.java	Thu Oct 16 07:39:53 2008 -0700
     1.2 +++ b/test/tools/javap/T6622260.java	Thu Oct 16 18:07:37 2008 +0100
     1.3 @@ -189,10 +189,7 @@
     1.4  
     1.5      void verify(String output) {
     1.6          System.out.println(output);
     1.7 -        if (output.startsWith("Classfile")) {
     1.8 -            // make sure to ignore filename
     1.9 -            output = output.substring(output.indexOf('\n'));
    1.10 -        }
    1.11 +        output = output.substring(output.indexOf("Test.java"));
    1.12          if (output.indexOf("-") >= 0)
    1.13              throw new Error("- found in output");
    1.14          if (output.indexOf("FFFFFF") >= 0)

mercurial