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

Commits:

3 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/concurrent/should_run/all.T
    ... ... @@ -271,7 +271,8 @@ test('T21969',
    271 271
            extra_run_opts('50000'),
    
    272 272
            run_timeout_multiplier(0.3), # default timeout seems to be 300, but lockups happen quickly
    
    273 273
            req_target_smp,
    
    274
    -       req_ghc_smp
    
    274
    +       req_ghc_smp,
    
    275
    +       all_available_io_managers,
    
    275 276
          ],
    
    276 277
          compile_and_run, [''])
    
    277 278
     
    
    ... ... @@ -289,24 +290,28 @@ test('T21969',
    289 290
     test('T21969a',
    
    290 291
          [ only_ways(['threaded1','threaded2', 'nonmoving_thr', 'profthreaded']),
    
    291 292
            when(opsys('mingw32'),skip), # POSIX only
    
    293
    +       all_available_io_managers,
    
    292 294
          ],
    
    293 295
          compile_and_run, [''])
    
    294 296
     
    
    295 297
     test('T21969b',
    
    296 298
          [ only_ways(['threaded1','threaded2', 'nonmoving_thr', 'profthreaded']),
    
    297 299
            when(opsys('mingw32'),skip), # POSIX only
    
    300
    +       all_available_io_managers,
    
    298 301
          ],
    
    299 302
          compile_and_run, [''])
    
    300 303
     
    
    301 304
     test('T21969c',
    
    302 305
          [ only_ways(['threaded1','threaded2', 'nonmoving_thr', 'profthreaded']),
    
    303 306
            when(opsys('mingw32'),skip), # POSIX only
    
    307
    +       all_available_io_managers,
    
    304 308
          ],
    
    305 309
          compile_and_run, [''])
    
    306 310
     
    
    307 311
     test('T21969d',
    
    308 312
          [ only_ways(['threaded1','threaded2', 'nonmoving_thr', 'profthreaded']),
    
    309 313
            when(opsys('mingw32'),skip), # POSIX only
    
    314
    +       all_available_io_managers,
    
    310 315
          ],
    
    311 316
          compile_and_run, [''])
    
    312 317
     
    
    ... ... @@ -314,12 +319,14 @@ test('T21969e',
    314 319
          [ only_ways(['threaded1','threaded2', 'nonmoving_thr', 'profthreaded']),
    
    315 320
            when(opsys('mingw32'),skip), # POSIX only
    
    316 321
            run_timeout_multiplier(0.3),
    
    322
    +       all_available_io_managers,
    
    317 323
          ],
    
    318 324
          compile_and_run, [''])
    
    319 325
     
    
    320 326
     test('T21969f',
    
    321 327
          [ only_ways(['threaded1','threaded2', 'nonmoving_thr', 'profthreaded']),
    
    322 328
            when(opsys('mingw32'),skip), # POSIX only
    
    329
    +       all_available_io_managers,
    
    323 330
          ],
    
    324 331
          compile_and_run, [''])
    
    325 332
     
    

  • testsuite/tests/rts/all.T
    ... ... @@ -408,6 +408,7 @@ test('T10590', [ ignore_stderr
    408 408
                    , when(opsys('mingw32'), skip)
    
    409 409
                    , js_skip # JS backend doesn't support pipes
    
    410 410
                    , req_process
    
    411
    +               , all_available_io_managers
    
    411 412
                    ], compile_and_run, [''])
    
    412 413
     
    
    413 414
     # Run with stdin and stdout closed -- that is what leaves those descriptors