diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2015-12-28 23:18:33 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2015-12-30 00:09:08 +0100 |
commit | 34af60c718734625d7f5abbebb3d520ecba36afa (patch) | |
tree | bf8f14521b20935081c107d9214c32ccce797307 | |
parent | c6cab9d998b819b177962c1341208cf8b89ad398 (diff) | |
download | haskell-34af60c718734625d7f5abbebb3d520ecba36afa.tar.gz |
testsuite: normalise away `ld`-warning on AIX
On AIX, `ld` doesn't support `-x` and ignores it. However, a warning is
emitted to stderr which ends up triggering false positives in some of
GHC's testsuite tests. So we simply filter out that noise as part of
normalising stderr.
-rw-r--r-- | testsuite/driver/testlib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index 6b2220f5bc..2ac90180e9 100644 --- a/testsuite/driver/testlib.py +++ b/testsuite/driver/testlib.py @@ -1704,6 +1704,10 @@ def normalise_type_reps(str): return re.sub(tyCon_re, 'TyCon FINGERPRINT FINGERPRINT ', str) def normalise_errmsg( str ): + """Normalise error-messages emitted via stderr""" + # IBM AIX's `ld` is a bit chatty + if opsys('aix'): + str = str.replace('ld: 0706-027 The -x flag is ignored.\n', '') # remove " error:" and lower-case " Warning:" to make patch for # trac issue #10021 smaller str = modify_lines(str, lambda l: re.sub(' error:', '', l)) |