Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions testsuite/tests/rts/linker/T11223/all.T
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ test('T11223_simple_duplicate',

test('T11223_simple_duplicate_lib',
[extra_files(['bar.c', 'foo.c', 'foo.hs']),
when(ghc_dynamic(), skip), normalise_errmsg_fun(normalise_duplicate_errmsg),
when(ghc_dynamic(), skip),
# Darwin/Mach-O reports external C symbols with a leading underscore (e.g. _a, _c)
# which our expected stderr (shared with ELF platforms) does not account for.
# Rather than broaden normalisation here, skip on darwin for now.
when(opsys('darwin'), skip),
normalise_errmsg_fun(normalise_duplicate_errmsg),
req_c],
makefile_test, ['t_11223_simple_duplicate_lib'])

Expand All @@ -57,7 +62,10 @@ test('T11223_link_order_b_a_succeed',

test('T11223_link_order_a_b_2_fail',
[extra_files(['bar.c', 'foo.c', 'foo3.hs']),
when(ghc_dynamic(), skip), normalise_errmsg_fun(normalise_duplicate_errmsg),
when(ghc_dynamic(), skip),
# See note above about Mach-O leading underscores; skip on darwin.
when(opsys('darwin'), skip),
normalise_errmsg_fun(normalise_duplicate_errmsg),
req_c],
makefile_test, ['t_11223_link_order_a_b_2_fail'])

Expand Down