Skip to content

testsuite driver does not honor `extra_run_opts` for the ghci way

This causes the stack004 test to fail in the ghci way.

Test declaration:

test('stack004', [extra_run_opts('+RTS -K0 -RTS') ], compile_and_run, [''])

Actual command executed by the testsuite driver:

=====> stack004(ghci) 1 of 1 [0, 0, 0]
  cd "./rts/stack004.run" && "/home/alp/ghc/inplace/test   spaces/ghc-stage2" stack004.hs -dcore-lint -dcmm-lint -no-user-package-db -rtsopts -fno-warn-missed-specialisations -fshow-warning-groups -fdiagnostics-color=never -fno-diagnostics-show-caret -dno-debug-output  --interactive -v0 -ignore-dot-ghci -fno-ghci-history +RTS -I0.1 -RTS < stack004.genscript
  Actual stdout output differs from expected:
  diff -uw "/dev/null" "./rts/stack004.run/stack004.run.stdout.normalised"
  --- /dev/null	2018-03-07 13:03:27.344000000 +0100
  +++ ./rts/stack004.run/stack004.run.stdout.normalised	2018-03-08 11:53:55.339965000 +0100
  @@ -0,0 +1 @@
  +uh oh
  *** unexpected failure for stack004(ghci)

We can see that the extra +RTS -K0 -RTS options don't get passed to ghci. I'm marking stack004 as broken for the ghci way for now, but we'll probably want to look into this at some point.

Trac metadata
Trac field Value
Version 8.5
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Test Suite
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information