Teo Camarasu pushed to branch wip/teo/T27547 at Glasgow Haskell Compiler / GHC Commits: 726352f1 by Teo Camarasu at 2026-11-25T11:10:06+00:00 Skip tests that excercise forkProcess when using non-moving GC The non-moving GC creates a persistent marker thread. This causes issues when users use forkProcess, since the child process ends up in a strange state. forkProcess is documented to not work well with the threaded Haskell runtime. So, it's not surprising that it doesn't work with the non-moving GC which is inherently threaded. We should one day add support for forkProcess, but, for now, we just disable these tests when using the non-moving GC. The underlying issue is tracked by #27547. - - - - - 3 changed files: - testsuite/tests/hpc/fork/test.T - testsuite/tests/lib/base/all.T - testsuite/tests/rts/all.T Changes: ===================================== testsuite/tests/hpc/fork/test.T ===================================== @@ -9,5 +9,7 @@ test('hpc_fork', # and #8862. req_process, omit_ways(prof_ways), - cmd_prefix(hpc_prefix)], + cmd_prefix(hpc_prefix), + # The threaded nonmoving-gc doesn't support forkProcess. See #27547 + omit_ways(['nonmoving_thr', 'nonmoving_thr_ghc', 'nonmoving_thr_sanity'])], compile_and_run, ['-fhpc']) ===================================== testsuite/tests/lib/base/all.T ===================================== @@ -2,7 +2,13 @@ test('DataTypeOrd', normal, compile_and_run, ['']) test('T16586', normal, compile_and_run, ['-O2']) # Event-manager not supported on Windows test('T16916', [when(opsys('mingw32'), skip), js_broken(22261), fragile(16966), req_ghc_with_threaded_rts], compile_and_run, ['-O2 -threaded -with-rtsopts="-I0" -rtsopts']) -test('T24672', [when(opsys('mingw32'), skip), js_broken(22261),req_process], compile_and_run, ['']) +test('T24672', + [ when(opsys('mingw32'), skip) + , js_broken(22261) + , req_process + # The threaded nonmoving-gc doesn't support forkProcess. See #27547 + , omit_ways(['nonmoving_thr', 'nonmoving_thr_ghc', 'nonmoving_thr_sanity'])] + , compile_and_run, ['']) test('T17310', normal, compile, ['']) test('T19691', normal, compile, ['']) test('executablePath', [extra_run_opts(config.os), js_broken(22261), when(arch('wasm32'), fragile(23248)), omit_ghci], compile_and_run, ['']) ===================================== testsuite/tests/rts/all.T ===================================== @@ -451,6 +451,8 @@ test('T13617', [ unless(opsys('mingw32'), skip)], # its history. test('T12903', [ fragile(21184) , js_broken(22374) + # The threaded nonmoving-gc doesn't support forkProcess. See #27547 + , omit_ways(['nonmoving_thr', 'nonmoving_thr_ghc', 'nonmoving_thr_sanity']) , req_process] , compile_and_run, ['']) @@ -687,7 +689,12 @@ test('IOManager', [js_skip, when(arch('wasm32'), skip), when(opsys('mingw32'), s test('T24142', [req_target_smp], compile_and_run, ['-threaded -with-rtsopts "-N2"']) test('T25232', [unless(have_profiling(), skip), only_ways(['normal','nonmoving','nonmoving_prof','nonmoving_thr_prof']), extra_ways(['nonmoving', 'nonmoving_prof'] + (['nonmoving_thr_prof'] if have_threaded() else []))], compile_and_run, ['']) -test('T25280', [unless(opsys('linux'),skip),req_process,js_skip], compile_and_run, ['']) +test('T25280', + [unless(opsys('linux'),skip) + ,req_process,js_skip + # The threaded nonmoving-gc doesn't support forkProcess. See #27547 + , omit_ways(['nonmoving_thr', 'nonmoving_thr_ghc', 'nonmoving_thr_sanity'])] + , compile_and_run , ['']) # N.B. This will likely issue a warning on stderr but we merely care that the # program doesn't crash. View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/726352f193f5b332800fed2f5c785236... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/726352f193f5b332800fed2f5c785236... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help