summaryrefslogtreecommitdiffstats
path: root/test/exitfns.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2001-09-16 04:22:19 (GMT)
committerSteven Knight <knight@baldmt.com>2001-09-16 04:22:19 (GMT)
commite88681240924e70ec12abaf3664290a69db6dcfd (patch)
tree136311c7b231f8d467156a9ae4a9d53428f364fc /test/exitfns.py
parentfcd916513a1ad10e13479d4d604f239f7ea45c73 (diff)
downloadSCons-e88681240924e70ec12abaf3664290a69db6dcfd.zip
SCons-e88681240924e70ec12abaf3664290a69db6dcfd.tar.gz
SCons-e88681240924e70ec12abaf3664290a69db6dcfd.tar.bz2
Add more information error reporting from tests.
Diffstat (limited to 'test/exitfns.py')
-rw-r--r--test/exitfns.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/exitfns.py b/test/exitfns.py
index 165f403..a13dd9b 100644
--- a/test/exitfns.py
+++ b/test/exitfns.py
@@ -2,9 +2,10 @@
__revision__ = "test/exitfns.py __REVISION__ __DATE__ __DEVELOPER__"
+import TestCmd
import TestSCons
-test = TestSCons.TestSCons()
+test = TestSCons.TestSCons(match = TestCmd.match_exact)
sconstruct = """
from scons.exitfuncs import *
@@ -33,9 +34,7 @@ running x3('no kwd args', kwd=None)
test.write('SConstruct', sconstruct)
-test.run(arguments='-f SConstruct')
-
-test.fail_test(test.stdout() != expected_output)
+test.run(arguments='-f SConstruct', stdout = expected_output)
test.write('SConstruct', """import sys
def f():
@@ -44,8 +43,6 @@ def f():
sys.exitfunc = f
""" + sconstruct)
-test.run(arguments='-f SConstruct')
-
-test.fail_test(test.stdout() != expected_output)
+test.run(arguments='-f SConstruct', stdout = expected_output)
test.pass_test()