8163877: Tests added in JDK-8163518 fail on some platforms
authorigerasim
Thu, 11 Aug 2016 23:41:48 +0300
changeset 40265 e73a9c4ada83
parent 40264 9ce9bf3a2453
child 40266 d198987d85e1
8163877: Tests added in JDK-8163518 fail on some platforms Reviewed-by: darcy
jdk/test/java/io/CharArrayReader/OverflowInRead.java
jdk/test/java/io/StringBufferInputStream/OverflowInRead.java
--- a/jdk/test/java/io/CharArrayReader/OverflowInRead.java	Thu Aug 11 17:02:46 2016 +0000
+++ b/jdk/test/java/io/CharArrayReader/OverflowInRead.java	Thu Aug 11 23:41:48 2016 +0300
@@ -24,7 +24,7 @@
 /* @test
  * @bug 8163518
  * @summary Integer overflow when reading in large buffer
- * @requires (os.simpleArch == "x64" & os.maxMemory > 8g)
+ * @requires (sun.arch.data.model == "64" & os.maxMemory > 8g)
  * @run main/othervm -Xmx8g OverflowInRead
  */
 
--- a/jdk/test/java/io/StringBufferInputStream/OverflowInRead.java	Thu Aug 11 17:02:46 2016 +0000
+++ b/jdk/test/java/io/StringBufferInputStream/OverflowInRead.java	Thu Aug 11 23:41:48 2016 +0300
@@ -24,7 +24,7 @@
 /* @test
  * @bug 8163518
  * @summary Integer overflow when reading in large buffer
- * @requires (os.simpleArch == "x64" & os.maxMemory > 4g)
+ * @requires (sun.arch.data.model == "64" & os.maxMemory > 4g)
  * @run main/othervm -Xmx4g OverflowInRead
  */