Skip the NSC test when valgrind is enabled.

This commit is contained in:
Gustavo J. A. M. Carneiro
2009-01-28 11:06:50 +00:00
parent c2fd874a0e
commit f5015da143
3 changed files with 5 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ class regression_test_task(Task.TaskBase):
program = getattr(mod, "program", short_name)
if hasattr(mod, 'may_run'):
reason_cannot_run = mod.may_run(self.env)
reason_cannot_run = mod.may_run(self.env, Options.options)
else:
reason_cannot_run = None
if reason_cannot_run:

View File

@@ -4,7 +4,7 @@
import os.path
def may_run(env):
def may_run(env, options):
"""Returns 0 when it can run, return non-zero or string (reason) when it cannot run"""
if env['ENABLE_PYTHON_BINDINGS']:
return 0

View File

@@ -5,10 +5,12 @@
import platform
def may_run(env):
def may_run(env, options):
if not env['NSC_ENABLED']:
return "NSC not available"
else:
if options.valgrind:
return "NSC does not get along with valgrind"
return 0