Commit 5ca9e65d authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Skip the GHCi debugger tests when unregisterised (trac #1545)

parent adcee390
...@@ -40,6 +40,8 @@ if (ghc_with_profiling == 1): ...@@ -40,6 +40,8 @@ if (ghc_with_profiling == 1):
if (ghc_with_interpreter == 1): if (ghc_with_interpreter == 1):
config.run_ways.append('ghci') config.run_ways.append('ghci')
config.unregisterised = (ghc_unregisterised == 1)
if (ghc_with_threaded_rts == 1): if (ghc_with_threaded_rts == 1):
config.run_ways.append('threaded1') config.run_ways.append('threaded1')
if (ghc_with_smp == 1): if (ghc_with_smp == 1):
......
...@@ -71,6 +71,12 @@ else ...@@ -71,6 +71,12 @@ else
RUNTEST_OPTS += -e ghc_with_interpreter=0 RUNTEST_OPTS += -e ghc_with_interpreter=0
endif endif
ifeq "$(GhcUnregisterised)" "YES"
RUNTEST_OPTS += -e ghc_unregisterised=1
else
RUNTEST_OPTS += -e ghc_unregisterised=0
endif
ifeq "$(filter thr, $(GhcRTSWays))" "thr" ifeq "$(filter thr, $(GhcRTSWays))" "thr"
RUNTEST_OPTS += -e ghc_with_threaded_rts=1 RUNTEST_OPTS += -e ghc_with_threaded_rts=1
else else
......
# trac #1545: GHCi debugger doesn't work on an unregisterised compiler
def f(opts):
if config.unregisterised:
opts.skip = 1
setTestOpts(f)
setTestOpts(extra_run_opts('-ignore-dot-ghci')) setTestOpts(extra_run_opts('-ignore-dot-ghci'))
test('print001', normal, ghci_script, ['print001.script']) test('print001', normal, ghci_script, ['print001.script'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment