Skip to content

Commit 555f209

Browse files
authored
Merge pull request #803 from orionpapadakis/test/whitelistInheritedFields
Whitelist `TestInheritedFields` for non-OpenCL backends
2 parents bef9210 + 2b88ecf commit 555f209

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

tornado-assembly/src/bin/tornado-test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ __TORNADO_TESTS_WHITE_LIST__ = [
327327

328328
## Atomics
329329
"uk.ac.manchester.tornado.unittests.atomics.TestAtomics#testAtomic12",
330+
"uk.ac.manchester.tornado.unittests.fields.TestInheritedFields",
330331

331332
## Multi-backend
332333
"uk.ac.manchester.tornado.unittests.vm.concurrency.TestConcurrentBackends#testTwoBackendsSerial",

tornado-unittests/src/main/java/uk/ac/manchester/tornado/unittests/fields/TestInheritedFields.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ public void backendCheck() {
6262

6363
@Test
6464
public void testIncrementPrimitiveB() {
65+
// only for opencl backend
66+
assertNotBackend(TornadoVMBackendType.PTX);
67+
assertNotBackend(TornadoVMBackendType.SPIRV);
68+
6569
final int N = 1000;
6670
PrimitiveB b = new PrimitiveB(N);
6771

@@ -81,6 +85,10 @@ public void testIncrementPrimitiveB() {
8185

8286
@Test
8387
public void testIncrementPrimitiveAB() {
88+
// only for opencl backend
89+
assertNotBackend(TornadoVMBackendType.PTX);
90+
assertNotBackend(TornadoVMBackendType.SPIRV);
91+
8492
final int N = 1000;
8593
PrimitiveB b = new PrimitiveB(N);
8694

@@ -101,6 +109,10 @@ public void testIncrementPrimitiveAB() {
101109

102110
@Test
103111
public void testIncrementTornadoB() {
112+
// only for opencl backend
113+
assertNotBackend(TornadoVMBackendType.PTX);
114+
assertNotBackend(TornadoVMBackendType.SPIRV);
115+
104116
final int N = 1000;
105117
TornadoB b = new TornadoB(N);
106118

@@ -120,6 +132,10 @@ public void testIncrementTornadoB() {
120132

121133
@Test
122134
public void testIncrementTornadoAB() {
135+
// only for opencl backend
136+
assertNotBackend(TornadoVMBackendType.PTX);
137+
assertNotBackend(TornadoVMBackendType.SPIRV);
138+
123139
final int N = 1000;
124140
TornadoB b = new TornadoB(N);
125141

0 commit comments

Comments
 (0)