HDFFV-10995 adjust testing to tolerate non-US locale

This commit is contained in:
Allen Byrne
2020-01-08 12:44:48 -06:00
parent c3ae64a875
commit 59ab02a6c5
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -173,7 +173,7 @@ public class H5Ex_T_Float {
}
// Output the data to the screen.
DecimalFormat df = new DecimalFormat("#,##0.0000");
DecimalFormat df = new DecimalFormat("#,##0.0000", new DecimalFormatSymbols(Locale.US));
System.out.println(DATASETNAME + ":");
for (int indx = 0; indx < dims[0]; indx++) {
System.out.print(" [");
@@ -201,7 +201,7 @@ public class H5Ex_T_FloatAttribute {
}
// Output the data to the screen.
DecimalFormat df = new DecimalFormat("#,##0.0000");
DecimalFormat df = new DecimalFormat("#,##0.0000", new DecimalFormatSymbols(Locale.US));
System.out.println(ATTRIBUTENAME + ":");
for (int indx = 0; indx < dims[0]; indx++) {
System.out.print(" [");
+1 -1
View File
@@ -330,7 +330,7 @@ TESTING JUnit-TestH5
# Extract file name, line number, version and thread IDs because they may be different
sed -e 's/thread [0-9]*/thread (IDs)/' -e 's/: .*\.c /: (file name) /' \
-e 's/line [0-9]*/line (number)/' \
-e 's/Time: [0-9]*[\.[0-9]*]*/Time: XXXX/' \
-e 's/Time: [0-9]*[\.,[0-9]*]*/Time: XXXX/' \
-e 's/v[1-9]*\.[0-9]*\./version (number)\./' \
-e 's/[1-9]*\.[0-9]*\.[0-9]*[^)]*/version (number)/' \
JUnit-TestH5.ext > JUnit-TestH5.out