summaryrefslogtreecommitdiffstats
path: root/test/Exit.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Exit.py')
-rw-r--r--test/Exit.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/Exit.py b/test/Exit.py
index 2988084..686cdb3 100644
--- a/test/Exit.py
+++ b/test/Exit.py
@@ -40,13 +40,24 @@ subdir_foo_in = os.path.join('subdir', 'foo.in')
subdir_foo_out = os.path.join('subdir', 'foo.out')
test.write('SConstruct', """\
-print "SConstruct"
+print "SConstruct, Exit()"
Exit()
""")
test.run(stdout = """\
scons: Reading SConscript files ...
-SConstruct
+SConstruct, Exit()
+""")
+
+test.write('SConstruct', """\
+env = Environment()
+print "SConstruct, env.Exit()"
+env.Exit()
+""")
+
+test.run(stdout = """\
+scons: Reading SConscript files ...
+SConstruct, env.Exit()
""")
test.write('SConstruct', """\