summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-06-18 22:30:27 +0930
committerRusty Russell <rusty@rustcorp.com.au>2012-06-19 05:38:06 +0200
commit1765c0f9baf16ff1c2f5f109fb31e411831f0945 (patch)
tree37325b98ca59931c94862999cbb84fd818a58ebc
parentfc9b8ee7904ce6fc560ec869f4835c0b83815f3a (diff)
downloadsamba-1765c0f9baf16ff1c2f5f109fb31e411831f0945.tar.gz
samba-1765c0f9baf16ff1c2f5f109fb31e411831f0945.tar.bz2
samba-1765c0f9baf16ff1c2f5f109fb31e411831f0945.zip
ntdb: catch any valgrind errors in test
Make --valgrind and --valgrind-log options work! Amitay figured this out! Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r--lib/ntdb/wscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ntdb/wscript b/lib/ntdb/wscript
index aab42456c5..fd9c96b59b 100644
--- a/lib/ntdb/wscript
+++ b/lib/ntdb/wscript
@@ -230,9 +230,9 @@ def testonly(ctx):
if not os.path.exists(link):
os.symlink(os.path.abspath(os.path.join(env.cwd, 'test')), link)
- if Options.options.VALGRIND:
+ if env.options['VALGRIND']:
os.environ['VALGRIND'] = 'valgrind -q --num-callers=30 --error-exitcode=11'
- if Options.options.VALGRINDLOG is not None:
+ if env.options['VALGRINDLOG']:
os.environ['VALGRIND'] += ' --log-file=%s' % Options.options.VALGRINDLOG
for f in env.NTDB_TEST_RUN_SRC + env.NTDB_TEST_API_SRC: