8258584: java/util/HexFormat/HexFormatTest.java fails on x86_32

Reviewed-by: rriggs
This commit is contained in:
Jie Fu 2020-12-22 02:07:33 +00:00
parent 30b9ff660f
commit 1594372c28

View file

@ -23,6 +23,7 @@
import org.testng.annotations.DataProvider; import org.testng.annotations.DataProvider;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import org.testng.SkipException;
import java.io.CharArrayWriter; import java.io.CharArrayWriter;
import java.io.IOException; import java.io.IOException;
@ -42,7 +43,7 @@ import static org.testng.Assert.expectThrows;
/* /*
* @test * @test
* @summary Check HexFormat formatting and parsing * @summary Check HexFormat formatting and parsing
* @run testng/othervm -Xmx4G HexFormatTest * @run testng/othervm HexFormatTest
*/ */
@Test @Test
@ -645,7 +646,7 @@ public class HexFormatTest {
Runtime.getRuntime().totalMemory(), Runtime.getRuntime().totalMemory(),
Runtime.getRuntime().freeMemory(), Runtime.getRuntime().freeMemory(),
Runtime.getRuntime().maxMemory()); Runtime.getRuntime().maxMemory());
throw oome; throw new SkipException("Insufficient Memory to test OOME");
} }
} }