diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2022-03-13 16:38:49 +0000 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2022-03-18 15:29:50 +0000 |
commit | c5086228cd79f7baa7d8d3c4bba04a69ab756253 (patch) | |
tree | 5527cbddb9281a578bc5aaba5f1d1c3fae798475 | |
parent | 63746c253a83be0022d920e045dfd356b1ca0149 (diff) | |
download | gcc-c5086228cd79f7baa7d8d3c4bba04a69ab756253.zip gcc-c5086228cd79f7baa7d8d3c4bba04a69ab756253.tar.gz gcc-c5086228cd79f7baa7d8d3c4bba04a69ab756253.tar.bz2 |
testsuite, modules, Darwin: Adjust expected output for older OS versions.
Darwin versions <= 10 (macOS 10.6) emit different diagnostics for the failure
case being tested by bad-mapper-1.C. Adjust the dg- expressions to reflect this.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/testsuite/ChangeLog:
* g++.dg/modules/bad-mapper-1.C: Make dg- expressions that match the
diagnostics output by earlier Darwin too.
-rw-r--r-- | gcc/testsuite/g++.dg/modules/bad-mapper-1.C | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/modules/bad-mapper-1.C b/gcc/testsuite/g++.dg/modules/bad-mapper-1.C index 7ed75b8..6d0ed4b 100644 --- a/gcc/testsuite/g++.dg/modules/bad-mapper-1.C +++ b/gcc/testsuite/g++.dg/modules/bad-mapper-1.C @@ -1,6 +1,9 @@ // { dg-additional-options "-fmodules-ts -fmodule-mapper=|this-will-not-work" } import unique1.bob; -// { dg-error "-:failed exec.*mapper.* .*this-will-not-work" "" { target *-*-* } 0 } +// { dg-error "-:failed exec.*mapper.* .*this-will-not-work" "" { target { ! { *-*-darwin[89]* *-*-darwin10* } } } 0 } // { dg-prune-output "fatal error:" } // { dg-prune-output "failed to read" } // { dg-prune-output "compilation terminated" } +// { dg-error "-:failed mapper handshake communication" "" { target { *-*-darwin[89]* *-*-darwin10* } } 0 } +// { dg-prune-output "trying to exec .this-will-not-work." } +// { dg-prune-output "unknown Compiled Module Interface" } |