Commit c64c8027 authored by Simon Marlow's avatar Simon Marlow
Browse files

add req_smp

parent 0290ab29
...@@ -46,6 +46,7 @@ config.unregisterised = (ghc_unregisterised == 1) ...@@ -46,6 +46,7 @@ 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):
config.have_smp = True
config.run_ways.append('threaded2') config.run_ways.append('threaded2')
if (ghc_with_dynamic_rts == 1): if (ghc_with_dynamic_rts == 1):
......
...@@ -87,6 +87,9 @@ class TestConfig: ...@@ -87,6 +87,9 @@ class TestConfig:
# Do we have shared libraries? # Do we have shared libraries?
self.have_shared_libs = False self.have_shared_libs = False
# Do we have SMP support?
self.have_smp = False
# Are we testing an in-tree compiler? # Are we testing an in-tree compiler?
self.in_tree_compiler = True self.in_tree_compiler = True
......
...@@ -125,6 +125,10 @@ def req_interp( opts ): ...@@ -125,6 +125,10 @@ def req_interp( opts ):
if not config.have_interp: if not config.have_interp:
opts.expect = 'fail' opts.expect = 'fail'
def req_smp( opts ):
if not config.have_smp:
opts.expect = 'fail'
def expect_broken( bug ): def expect_broken( bug ):
return lambda opts, b=bug: _expect_broken (opts, b ) return lambda opts, b=bug: _expect_broken (opts, b )
......
Supports Markdown
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