8025427: jstat tests fails on 32-bit platforms
authorsla
Thu, 10 Oct 2013 09:38:06 +0200
changeset 20763 95cf1b4945f4
parent 20762 7ec392af43cd
child 20764 ad561abdaf7b
8025427: jstat tests fails on 32-bit platforms Reviewed-by: ehelin, dsamersoff, dholmes, sspitsyn
jdk/src/share/classes/sun/tools/jstat/RowClosure.java
jdk/test/ProblemList.txt
jdk/test/sun/tools/jstat/gcCauseOutput1.awk
jdk/test/sun/tools/jstat/lineCounts1.awk
jdk/test/sun/tools/jstat/lineCounts2.awk
jdk/test/sun/tools/jstat/lineCounts3.awk
jdk/test/sun/tools/jstat/lineCounts4.awk
jdk/test/sun/tools/jstat/timeStamp1.awk
jdk/test/sun/tools/jstatd/jstatGcutilOutput1.awk
--- a/jdk/src/share/classes/sun/tools/jstat/RowClosure.java	Thu Oct 10 15:24:41 2013 +0800
+++ b/jdk/src/share/classes/sun/tools/jstat/RowClosure.java	Thu Oct 10 09:38:06 2013 +0200
@@ -62,6 +62,9 @@
             double d = ((Number)value).doubleValue();
             double scaledValue = c.getScale().scale(d);
             DecimalFormat df = new DecimalFormat(c.getFormat());
+            DecimalFormatSymbols syms = df.getDecimalFormatSymbols();
+            syms.setNaN("-");
+            df.setDecimalFormatSymbols(syms);
             s = df.format(scaledValue);
         }
 
--- a/jdk/test/ProblemList.txt	Thu Oct 10 15:24:41 2013 +0800
+++ b/jdk/test/ProblemList.txt	Thu Oct 10 09:38:06 2013 +0200
@@ -322,18 +322,6 @@
 # 8007410
 tools/launcher/FXLauncherTest.java                              linux-all
 
-# 8025427
-sun/tools/jstat/jstatLineCounts1.sh                                 generic-all
-sun/tools/jstat/jstatLineCounts2.sh                                 generic-all
-sun/tools/jstat/jstatLineCounts3.sh                                 generic-all
-sun/tools/jstat/jstatTimeStamp1.sh                                  generic-all
-sun/tools/jstat/jstatGcCauseOutput1.sh                              generic-all
-sun/tools/jstat/jstatLineCounts4.sh                                 generic-all
-sun/tools/jstatd/jstatdDefaults.sh                                  generic-all
-sun/tools/jstatd/jstatdExternalRegistry.sh                          generic-all
-sun/tools/jstatd/jstatdPort.sh                                      generic-all
-sun/tools/jstatd/jstatdServerName.sh                                generic-all
-
 ############################################################################
 
 # jdk_jdi
--- a/jdk/test/sun/tools/jstat/gcCauseOutput1.awk	Thu Oct 10 15:24:41 2013 +0800
+++ b/jdk/test/sun/tools/jstat/gcCauseOutput1.awk	Thu Oct 10 09:38:06 2013 +0200
@@ -23,7 +23,7 @@
 # or more letters and spaces. It also provides for the ".", "(", and ")"
 # characters to allow for the string "System.gc()".
 #
-/^[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[a-zA-Z]+[a-zA-Z \.\(\)]*[ ]*[a-zA-Z]+[a-zA-Z \.\(\)]*$/	{
+/^[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*([0-9]+\.[0-9]+)|-[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[a-zA-Z]+[a-zA-Z \.\(\)]*[ ]*[a-zA-Z]+[a-zA-Z \.\(\)]*$/	{
 	    datalines++;
 	}
 
--- a/jdk/test/sun/tools/jstat/lineCounts1.awk	Thu Oct 10 15:24:41 2013 +0800
+++ b/jdk/test/sun/tools/jstat/lineCounts1.awk	Thu Oct 10 09:38:06 2013 +0200
@@ -18,7 +18,7 @@
 	    headerlines++;
 	}
 
-/^[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-9]+[ ]*[0-9]+\.[0-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