Simon Jakobi pushed to branch wip/sjakobi/T25450-march-native at Glasgow Haskell Compiler / GHC
Commits:
4b1a49cc by Simon Jakobi at 2026-06-02T23:25:22+02:00
Fix stderr normaliser for march_native_unsupported_arch test
The -march=native rejection prints to stderr, but normalise_fun only
normalises stdout (it sets extra_normaliser; stderr uses
extra_errmsg_normaliser). As a result the '<command line>: ' program-name
prefix was never stripped and the test failed. Use normalise_errmsg_fun
instead.
Co-Authored-By: Claude Opus 4.7
- - - - -
1 changed file:
- testsuite/tests/driver/all.T
Changes:
=====================================
testsuite/tests/driver/all.T
=====================================
@@ -281,7 +281,7 @@ test('march_native',
# On non-x86 targets -march=native must be rejected.
test('march_native_unsupported_arch',
[when(arch('x86_64') or arch('i386'), skip),
- normalise_fun(normalise_march_native_error), exit_code(1)],
+ normalise_errmsg_fun(normalise_march_native_error), exit_code(1)],
run_command,
['{compiler} -march=native --print-enabled-cpu-features'])
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4b1a49cc40bb74e039cf027ad0c03772...
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4b1a49cc40bb74e039cf027ad0c03772...
You're receiving this email because of your account on gitlab.haskell.org.