diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2021-02-13 11:57:39 +0800 |
---|---|---|
committer | Moritz Angermann <moritz.angermann@gmail.com> | 2021-02-16 14:45:23 +0800 |
commit | a2b259d2fadd065373b4af877a1720e8c582b231 (patch) | |
tree | 4199b3ceda991d65982e708769ae6093a5775b5b | |
parent | ec0f15837f08e6d71abf160a76f125bc8c77477b (diff) | |
download | haskell-wip/angerman/denoise-llvm.tar.gz |
[llvm] Prevent GHC from breaking the test-suitewip/angerman/denoise-llvm
This breaks lots of tests unnecessarily. The LLVM IR
has been pretty stable since ~7. This stops GHC from
emitting the warnings during the testsuite run.
-rw-r--r-- | testsuite/driver/testlib.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index c950bc4bbf..4ad2454816 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -2127,6 +2127,9 @@ def normalise_errmsg(s: str) -> str: # filter out nix garbage, that just keeps on showing up as errors on darwin s = modify_lines(s, lambda l: re.sub('^(.+)\.dylib, ignoring unexpected dylib file$','', l)) + s = re.sub('You are using an unsupported version of LLVM!.*\n','',s) + s = re.sub('Currently only [\.0-9]+ is supported. System LLVM version: [\.0-9]+.*\n','',s) + s = re.sub('We will try though\.\.\..*\n','',s) return s # normalise a .prof file, so that we can reasonably compare it against @@ -2200,6 +2203,11 @@ def normalise_output( s: str ) -> str: # ghci outputs are pretty unstable with -fexternal-dynamic-refs, which is # requires for -fPIC s = re.sub(' -fexternal-dynamic-refs\n','',s) + + s = re.sub('You are using an unsupported version of LLVM!.*\n','',s) + s = re.sub('Currently only [\.0-9]+ is supported. System LLVM version: [\.0-9]+.*\n','',s) + s = re.sub('We will try though\.\.\..*\n','',s) + return s def normalise_asm( s: str ) -> str: |