< prev index next >
test/compiler/intrinsics/string/TestHasNegatives.java
Print this page
rev 10528 : 8152636: TestHasNegatives.java fails after Jigsaw changes were integrated
Reviewed-by:
*** 24,45 ****
*/
/*
* @test
* @bug 8054307
- * @ignore 8152636
* @summary Validates StringCoding.hasNegatives intrinsic with a small range of tests.
! * @run main/bootclasspath java.lang.TestHasNegatives
*/
! package java.lang;
! import java.lang.StringCoding;
/*
* @summary Validates StringCoding.hasNegatives intrinsic with a small
! * range of tests. Must be run with modified bootclasspath
! * to allow existence in java.lang package.
*/
public class TestHasNegatives {
private static byte[] tBa = new byte[4096 + 16];
--- 24,46 ----
*/
/*
* @test
* @bug 8054307
* @summary Validates StringCoding.hasNegatives intrinsic with a small range of tests.
! * @library /compiler/patches
! * @build java.base/java.lang.Helper
! * @build compiler.intrinsics.string.TestHasNegatives
! * @run main compiler.intrinsics.string.TestHasNegatives
*/
! package compiler.intrinsics.string;
! import java.lang.Helper;
/*
* @summary Validates StringCoding.hasNegatives intrinsic with a small
! * range of tests.
*/
public class TestHasNegatives {
private static byte[] tBa = new byte[4096 + 16];
*** 93,103 ****
// choice
len = sizes[i];
if (len + off > tBa.length)
continue;
initialize(off, len, ng);
! r = StringCoding.hasNegatives(tBa, off, len);
if (r ^ ((ng == 0) ? false : true)) {
throw new Exception("Failed test hasNegatives " + "offset: " + off + " "
+ "length: " + len + " " + "return: " + r + " " + "negatives: "
+ ng);
}
--- 94,104 ----
// choice
len = sizes[i];
if (len + off > tBa.length)
continue;
initialize(off, len, ng);
! r = Helper.StringCodingHasNegatives(tBa, off, len);
if (r ^ ((ng == 0) ? false : true)) {
throw new Exception("Failed test hasNegatives " + "offset: " + off + " "
+ "length: " + len + " " + "return: " + r + " " + "negatives: "
+ ng);
}
< prev index next >