mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8258584: java/util/HexFormat/HexFormatTest.java fails on x86_32
Reviewed-by: rriggs
This commit is contained in:
parent
30b9ff660f
commit
1594372c28
1 changed files with 3 additions and 2 deletions
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue