# HG changeset patch # User Doug Simon # Date 1403016506 -7200 # Node ID 4b1c42d3392996460069c6d0f9c42e5ccb6b77c6 # Parent af8b7d059e03f9fc2fdde37cdf72225a8a1ea2d5 HSAIL: make tests run clean with -XX:-UseHSAILDeoptimization Contributed-by: Eric Caspole diff -r af8b7d059e03 -r 4b1c42d33929 graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/lambda/ArrayListSetTest.java --- a/graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/lambda/ArrayListSetTest.java Tue Jun 17 16:37:14 2014 +0200 +++ b/graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/lambda/ArrayListSetTest.java Tue Jun 17 16:48:26 2014 +0200 @@ -49,6 +49,11 @@ // } } + @Override + protected boolean supportsRequiredCapabilities() { + return (canHandleObjectAllocation()); + } + @Test public void testUsingLambdaMethod() { testGeneratedHsailUsingLambdaMethod(); diff -r af8b7d059e03 -r 4b1c42d33929 graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/lambda/StringBuilderTest.java --- a/graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/lambda/StringBuilderTest.java Tue Jun 17 16:37:14 2014 +0200 +++ b/graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/lambda/StringBuilderTest.java Tue Jun 17 16:48:26 2014 +0200 @@ -45,6 +45,11 @@ }); } + @Override + protected boolean supportsRequiredCapabilities() { + return (canHandleObjectAllocation()); + } + @Test public void testUsingLambdaMethod() { testGeneratedHsailUsingLambdaMethod();