David Eichmann pushed to branch wip/davide/fix_tests_over_io_managers at Glasgow Haskell Compiler / GHC Commits: a0424fca by David Eichmann at 2026-11-25T18:29:44+00:00 testsuite: fix framework failure on window for tests using all_available_io_managers_except() - - - - - 2 changed files: - testsuite/driver/testutil.py - testsuite/tests/cabal/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/cabal/all.T ===================================== @@ -76,4 +76,4 @@ test('T12485a', [extra_files(['shadow1.pkg', 'shadow2.pkg', 'shadow3.pkg'])], ma test('T13703', [extra_files(['test13703a.pkg', 'test13703b.pkg'])], makefile_test, []) -test('fileStatus', normal, compile_and_run, ['']) +test('fileStatus', [normal, all_available_io_managers], compile_and_run, ['']) View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a0424fca10ad0f2333369de84b71aa7c... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a0424fca10ad0f2333369de84b71aa7c... 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