regalloc_unit_tests: disable on UNREG targets
authorSergei Trofimovich <siarheit@google.com>
Sun, 18 Dec 2016 17:24:13 +0000 (17:24 +0000)
committerSergei Trofimovich <siarheit@google.com>
Sun, 18 Dec 2016 17:33:30 +0000 (17:33 +0000)
Test requires register allocator to be present
(native code generator).

Signed-off-by: Sergei Trofimovich <siarheit@google.com>
testsuite/tests/regalloc/all.T

index c0c01ff..99eeb1c 100644 (file)
@@ -1,4 +1,5 @@
 test('regalloc_unit_tests',
-     [ extra_files(['no_spills.cmm']), [ignore_stderr, only_ways(['normal'])], extra_run_opts('"' + config.libdir + '"') ],
+     [ when(unregisterised(), skip), extra_files(['no_spills.cmm']),
+       [ignore_stderr, only_ways(['normal'])], extra_run_opts('"' + config.libdir + '"') ],
      compile_and_run,
      ['-package ghc'])