David Eichmann pushed to branch wip/davide/fix_tests_over_io_managers at Glasgow Haskell Compiler / GHC

Commits:

2 changed files:

Changes:

  • testsuite/driver/testutil.py
    ... ... @@ -184,8 +184,10 @@ def shorten_metric_name(name: str) -> str:
    184 184
     # I/O manager discovery for a haskell binary. Returns the set of IO Manager
    
    185 185
     # strings supported by the binary
    
    186 186
     def discover_io_managers(hs_exe: Union[str, Path], cwd: Union[str, Path]) -> Set[str]:
    
    187
    +    # We must use an absolute path for the executable. Relative paths break on windows.
    
    188
    +    hs_exe_path = Path(cwd).joinpath(hs_exe)
    
    187 189
         rp = subprocess.run(
    
    188
    -        [str(hs_exe), '+RTS', '--info', '-RTS'],
    
    190
    +        [hs_exe_path, '+RTS', '--info', '-RTS'],
    
    189 191
             cwd=cwd,
    
    190 192
             stdout=subprocess.PIPE,
    
    191 193
             stderr=subprocess.DEVNULL)
    

  • testsuite/tests/cabal/all.T
    ... ... @@ -76,4 +76,4 @@ test('T12485a', [extra_files(['shadow1.pkg', 'shadow2.pkg', 'shadow3.pkg'])], ma
    76 76
     
    
    77 77
     test('T13703', [extra_files(['test13703a.pkg', 'test13703b.pkg'])], makefile_test, [])
    
    78 78
     
    
    79
    -test('fileStatus', normal, compile_and_run, [''])
    79
    +test('fileStatus', [normal, all_available_io_managers], compile_and_run, [''])