[Git][ghc/ghc][ghc-9.8] testsuite: Ignore stderr in T8089

Zubin (@wz1000) gitlab at gitlab.haskell.org
Fri Feb 23 07:01:38 UTC 2024



Zubin pushed to branch ghc-9.8 at Glasgow Haskell Compiler / GHC


Commits:
1c08e245 by Ben Gamari at 2024-02-23T12:31:12+05:30
testsuite: Ignore stderr in T8089

Otherwise spurious "Killed: 9" messages to stderr may cause the test to fail.
Fixes #24361.

(cherry picked from commit e693a4e8589bad35588c51fccc87f4388e7d5874)

- - - - -


1 changed file:

- libraries/base/tests/all.T


Changes:

=====================================
libraries/base/tests/all.T
=====================================
@@ -232,8 +232,12 @@ test('T9681', normal, compile_fail, [''])
 #   Probably something like 1s is already enough, but I don't know enough to
 #   make an educated guess how long it needs to be guaranteed to reach the C
 #   call."
+#
+# We ignore stderr since the test itself may print "Killed: 9" (see #24361);
+# all we care about is that the test timed out, for which the
+# exit_code check is sufficient.
 test('T8089',
-     [exit_code(99), run_timeout_multiplier(0.01)],
+     [exit_code(99), ignore_stderr, run_timeout_multiplier(0.01)],
      compile_and_run, [''])
 test('T8684', expect_broken(8684), compile_and_run, [''])
 test('hWaitForInput-accurate-stdin', [js_broken(22349), expect_broken_for(16535, threaded_ways), req_process], compile_and_run, [''])



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1c08e24581358f3ba067b6b2ea96eb2674b1ac23

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1c08e24581358f3ba067b6b2ea96eb2674b1ac23
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240223/51e55968/attachment.html>


More information about the ghc-commits mailing list