RFR(XXS): JDK-8030204 com/sun/jdi/JdbExprTest.sh: Required output "Can\\'t convert 2147483648 to int" not found

Staffan Larsen staffan.larsen at oracle.com
Mon Dec 16 05:49:14 PST 2013


My push today of JDK-4660158 included a test that fails on some platforms due to difference in how grep handles escaped characters. Here is an update to the test that fixes this. I have also changed tabs to spaces which explains the weird formatting in the diff.

bug: https://bugs.openjdk.java.net/browse/JDK-8030204

Thanks,
/Staffan

diff --git a/test/com/sun/jdi/JdbExprTest.sh b/test/com/sun/jdi/JdbExprTest.sh
--- a/test/com/sun/jdi/JdbExprTest.sh
+++ b/test/com/sun/jdi/JdbExprTest.sh
@@ -105,7 +105,7 @@
 	jdbFailIfNotPresent "$classname.aLong = 2147483648" 3

 	cmd set $classname.anInt = 0x80000000
-	jdbFailIfNotPresent	"Can\'t convert 2147483648 to int" 3
+    jdbFailIfNotPresent "InvalidTypeException: .* convert 2147483648 to int" 3
 	cmd set $classname.anInt = 0x8000000000000000L
 	jdbFailIfNotPresent	"java.lang.NumberFormatException: For input string: \"8000000000000000\"” 3<


More information about the serviceability-dev mailing list