# HG changeset patch # User Roland Schatz # Date 1374833433 -7200 # Node ID 3f43462ce8293420447bd715bd58a783c872a1c8 # Parent fe49e512176885bdc6869b280119780a0f737ef1 Work around missing support for boolean[] in junit. diff -r fe49e5121768 -r 3f43462ce829 graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java --- a/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Fri Jul 26 12:09:17 2013 +0200 +++ b/graal/com.oracle.graal.compiler.test/src/com/oracle/graal/compiler/test/GraalCompilerTest.java Fri Jul 26 12:10:33 2013 +0200 @@ -30,6 +30,7 @@ import java.util.concurrent.*; import org.junit.*; +import org.junit.internal.*; import com.oracle.graal.api.code.*; import com.oracle.graal.api.code.CallingConvention.Type; @@ -193,6 +194,8 @@ Assert.assertArrayEquals((long[]) expected, (long[]) actual); } else if (expected instanceof double[]) { Assert.assertArrayEquals((double[]) expected, (double[]) actual, 0.0d); + } else if (expected instanceof boolean[]) { + new ExactComparisonCriteria().arrayEquals(null, expected, actual); } else if (expected instanceof Object[]) { Assert.assertArrayEquals((Object[]) expected, (Object[]) actual); } else {