Skip to content

Commit

Permalink
Fix Asserts library for hotspot test in 8u
Browse files Browse the repository at this point in the history
  • Loading branch information
jmtd committed Dec 19, 2022
1 parent 267fd4d commit d2a41ed
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -37,8 +37,7 @@
import com.oracle.java.testlibrary.DockerTestUtils;
import com.oracle.java.testlibrary.OutputAnalyzer;


import static jdk.test.lib.Asserts.assertNotNull;
import com.oracle.java.testlibrary.Asserts;

public class TestMemoryAwareness {
private static final String imageName = Common.imageName("memory");
Expand Down Expand Up @@ -106,7 +105,7 @@ private static void testContainerMemExceedsPhysical()
// first run: establish physical memory in test environment and derive
// a bad value one power of ten larger
String goodMem = Common.run(opts).firstMatch("total physical memory: (\\d+)", 1);
assertNotNull(goodMem, "no match for 'total physical memory' in trace output");
Asserts.assertNotNull(goodMem, "no match for 'total physical memory' in trace output");
String badMem = goodMem + "0";

// second run: set a container memory limit to the bad value
Expand Down

0 comments on commit d2a41ed

Please sign in to comment.