summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-04-07 17:57:32 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2021-06-08 08:59:38 +0800
commitf61b6240d12936c7fc36a819f061c885137c59cc (patch)
tree2edd567f4cb6267488a6c726003f48831ef4877e
parent02b3bcf8e87fd35bec83fa8df7a49eb6b6e9f55a (diff)
downloadhaskell-f61b6240d12936c7fc36a819f061c885137c59cc.tar.gz
[testsuite] fix T13702 with clang
(cherry picked from commit 4db2d44ccbd0b615f41487bae082d1d14d37ecce)
-rw-r--r--testsuite/driver/testlib.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index b76f02f3a4..da95fe2545 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -2247,6 +2247,9 @@ def normalise_errmsg(s: str) -> str:
s = re.sub('We will try though\.\.\..*\n','',s)
# ignore warning about strip invalidating signatures
s = re.sub('.*strip: changes being made to the file will invalidate the code signature in.*\n','',s)
+ # clang may warn about unused argument when used as assembler
+ s = re.sub('.*warning: argument unused during compilation:.*\n', '', s)
+
return s
# normalise a .prof file, so that we can reasonably compare it against
@@ -2330,6 +2333,8 @@ def normalise_output( s: str ) -> str:
s = re.sub('We will try though\.\.\..*\n','',s)
# ignore warning about strip invalidating signatures
s = re.sub('.*strip: changes being made to the file will invalidate the code signature in.*\n','',s)
+ # clang may warn about unused argument when used as assembler
+ s = re.sub('.*warning: argument unused during compilation:.*\n', '', s)
return s