summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Trommler <ptrommler@acm.org>2022-01-22 15:11:52 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-02-26 17:21:59 -0500
commit0a80b43641c0b66ecdc6cf1d3ae08b002a0f270f (patch)
treee9f91446a1cd9237f34f6fcb9475c287856394f1
parent32d8fe3a9a7f471e98d173eb83c02e61d9e12fbb (diff)
downloadhaskell-0a80b43641c0b66ecdc6cf1d3ae08b002a0f270f.tar.gz
testsuite: Require LLVM for T15155l
-rw-r--r--testsuite/driver/testlib.py3
-rw-r--r--testsuite/tests/codeGen/should_compile/all.T2
-rwxr-xr-x[-rw-r--r--]testsuite/tests/linters/regex-linters/check-makefiles.py0
3 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 0f1f6d4538..7ee179b837 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -607,6 +607,9 @@ def have_vanilla( ) -> bool:
def have_ncg( ) -> bool:
return config.have_ncg
+def have_llvm( ) -> bool:
+ return config.have_llvm
+
def have_dynamic( ) -> bool:
''' Were libraries built in the dynamic way? '''
return config.have_dynamic
diff --git a/testsuite/tests/codeGen/should_compile/all.T b/testsuite/tests/codeGen/should_compile/all.T
index 3c76163582..9985580e78 100644
--- a/testsuite/tests/codeGen/should_compile/all.T
+++ b/testsuite/tests/codeGen/should_compile/all.T
@@ -55,7 +55,7 @@ test('T15155',
[ unless(have_ncg(), skip)
], makefile_test, [])
-test('T15155l', when(unregisterised(), skip),
+test('T15155l', [ when(unregisterised(), skip), unless(have_llvm(), skip)],
makefile_test, [])
test('T16449_1', normal, compile, [''])
diff --git a/testsuite/tests/linters/regex-linters/check-makefiles.py b/testsuite/tests/linters/regex-linters/check-makefiles.py
index 5a8286c6a7..5a8286c6a7 100644..100755
--- a/testsuite/tests/linters/regex-linters/check-makefiles.py
+++ b/testsuite/tests/linters/regex-linters/check-makefiles.py