[Git][ghc/ghc][wip/davide/fix_tests_over_io_managers] 2 commits: testsuite: fix framework failure on window for tests using all_available_io_managers_except()
David Eichmann pushed to branch wip/davide/fix_tests_over_io_managers at Glasgow Haskell Compiler / GHC Commits: 272565f4 by David Eichmann at 2026-11-26T11:50:33+00:00 testsuite: fix framework failure on window for tests using all_available_io_managers_except() - - - - - a936120d by David Eichmann at 2026-11-26T12:09:57+00:00 testsuite: use `all_available_io_managers` for various tests Affected tests: * T10590 * T21969 * T21969a * T21969b * T21969c * T21969d * T21969e * T21969f - - - - - 3 changed files: - testsuite/driver/testutil.py - testsuite/tests/concurrent/should_run/all.T - testsuite/tests/rts/all.T Changes: ===================================== testsuite/driver/testutil.py ===================================== @@ -184,8 +184,10 @@ def shorten_metric_name(name: str) -> str: # I/O manager discovery for a haskell binary. Returns the set of IO Manager # strings supported by the binary def discover_io_managers(hs_exe: Union[str, Path], cwd: Union[str, Path]) -> Set[str]: + # We must use an absolute path for the executable. Relative paths break on windows. + hs_exe_path = Path(cwd).joinpath(hs_exe) rp = subprocess.run( - [str(hs_exe), '+RTS', '--info', '-RTS'], + [hs_exe_path, '+RTS', '--info', '-RTS'], cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL) ===================================== testsuite/tests/concurrent/should_run/all.T ===================================== @@ -271,7 +271,8 @@ test('T21969', extra_run_opts('50000'), run_timeout_multiplier(0.3), # default timeout seems to be 300, but lockups happen quickly req_target_smp, - req_ghc_smp + req_ghc_smp, + all_available_io_managers, ], compile_and_run, ['']) @@ -289,24 +290,28 @@ test('T21969', test('T21969a', [ only_ways(['threaded1','threaded2', 'nonmoving_thr', 'profthreaded']), when(opsys('mingw32'),skip), # POSIX only + all_available_io_managers, ], compile_and_run, ['']) test('T21969b', [ only_ways(['threaded1','threaded2', 'nonmoving_thr', 'profthreaded']), when(opsys('mingw32'),skip), # POSIX only + all_available_io_managers, ], compile_and_run, ['']) test('T21969c', [ only_ways(['threaded1','threaded2', 'nonmoving_thr', 'profthreaded']), when(opsys('mingw32'),skip), # POSIX only + all_available_io_managers, ], compile_and_run, ['']) test('T21969d', [ only_ways(['threaded1','threaded2', 'nonmoving_thr', 'profthreaded']), when(opsys('mingw32'),skip), # POSIX only + all_available_io_managers, ], compile_and_run, ['']) @@ -314,12 +319,14 @@ test('T21969e', [ only_ways(['threaded1','threaded2', 'nonmoving_thr', 'profthreaded']), when(opsys('mingw32'),skip), # POSIX only run_timeout_multiplier(0.3), + all_available_io_managers, ], compile_and_run, ['']) test('T21969f', [ only_ways(['threaded1','threaded2', 'nonmoving_thr', 'profthreaded']), when(opsys('mingw32'),skip), # POSIX only + all_available_io_managers, ], compile_and_run, ['']) ===================================== testsuite/tests/rts/all.T ===================================== @@ -408,6 +408,7 @@ test('T10590', [ ignore_stderr , when(opsys('mingw32'), skip) , js_skip # JS backend doesn't support pipes , req_process + , all_available_io_managers ], compile_and_run, ['']) # Run with stdin and stdout closed -- that is what leaves those descriptors View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/a0424fca10ad0f2333369de84b71aa7... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/a0424fca10ad0f2333369de84b71aa7... 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
participants (1)
-
David Eichmann (@DavidEichmann)