summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2021-04-07 17:57:32 +0800
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-06-05 10:29:57 -0400
commit4db2d44ccbd0b615f41487bae082d1d14d37ecce (patch)
tree3189a18e39f278f43ed256debf1808275916aff9
parenta1fed3a51b9216ad072a0d57e32a0eaab44f9476 (diff)
downloadhaskell-4db2d44ccbd0b615f41487bae082d1d14d37ecce.tar.gz
[testsuite] fix T13702 with clang
-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 57bfe82bae..9fa61bc280 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -2257,6 +2257,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
@@ -2340,6 +2343,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