Minor code cleanup, including restoring saved SCONSFLAGS correctly.
[scons.git] / test / preserve-source.py
index b0acdaa0fba0ad28a2a36d99f8c226d9c148c4ed..cd0b3a37255dad687e2c2f448d76a28f5d4537bb 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 #
-# Copyright (c) 2001, 2002 Steven Knight
+# __COPYRIGHT__
 #
 # Permission is hereby granted, free of charge, to any person obtaining
 # a copy of this software and associated documentation files (the
@@ -25,7 +25,7 @@
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os.path
-import sys
+
 import TestSCons
 
 test = TestSCons.TestSCons()
@@ -53,9 +53,16 @@ test.run(arguments = '.')
 test.fail_test(test.read('aaa.out') != "aaa.in\n")
 
 #
-test.run(arguments = "aaa.in", stdout = test.wrap_stdout(""))
+test.run(arguments = "aaa.in",
+         stdout = test.wrap_stdout("scons: Nothing to be done for `aaa.in'.\n"))
 
 test.fail_test(not os.path.exists('aaa.in'))
 
 #
 test.pass_test()
+
+# Local Variables:
+# tab-width:4
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=4 shiftwidth=4: