summaryrefslogtreecommitdiff
path: root/test/Exit.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-09-15 14:01:28 +0000
committerSteven Knight <knight@baldmt.com>2003-09-15 14:01:28 +0000
commitc41dc6daf69787a9f4d4984aec727af705445e46 (patch)
tree24ce63856445f3ab2b29f4593bd0cb886cd4f4ba /test/Exit.py
parentf36ff530132ecfe7941f80d2d6e5f03f75decf41 (diff)
downloadscons-c41dc6daf69787a9f4d4984aec727af705445e46.tar.gz
Turn more global functions into Environment methods. (clone of 0.92.C121)
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 29880845..686cdb37 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', """\