Port sample_batch_reg.c to Java, incidentally finding a bug in the generic register implementation.

This commit is contained in:
Robert Xiao
2023-05-14 18:37:30 -07:00
parent edd80ddeda
commit 98f70d3213
3 changed files with 47 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import static org.junit.Assert.assertEquals;
import java.math.BigInteger;
import org.junit.Ignore;
import org.junit.Test;
import unicorn.Unicorn;
@@ -55,6 +56,7 @@ public class RegressionTests {
}
/** Test that Unicorn instances are properly garbage-collected */
@Ignore("This test is not deterministic")
@Test
public void testUnicornsWillGC() {
final boolean[] close_called = { false };