summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-06-10 16:50:46 (GMT)
committerSteven Knight <knight@baldmt.com>2010-06-10 16:50:46 (GMT)
commit72f883804a646818437ed3f3a973e7685415c91d (patch)
tree544fe4eca6c9abd00be992f420aeae92427d0443 /test
parentc34c9ced016ddefd7ab74cb4dd3e8832c45ce812 (diff)
downloadSCons-72f883804a646818437ed3f3a973e7685415c91d.zip
SCons-72f883804a646818437ed3f3a973e7685415c91d.tar.gz
SCons-72f883804a646818437ed3f3a973e7685415c91d.tar.bz2
Windows portability.
Diffstat (limited to 'test')
-rw-r--r--test/rebuild-generated.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/rebuild-generated.py b/test/rebuild-generated.py
index e50992d..6beba74 100644
--- a/test/rebuild-generated.py
+++ b/test/rebuild-generated.py
@@ -71,7 +71,9 @@ test.write('SConstruct', """\
env = Environment()
-kernelDefines = env.Command("header.hh", [], "echo > $TARGET")
+kernelDefines = env.Command("header.hh",
+ "header.hh.in",
+ Copy('$TARGET', '$SOURCE'))
kernelImporterSource = env.Command(
"generated.cc", ["%s"],
@@ -104,6 +106,8 @@ test.write('target.cc', """\
#endif
""")
+test.write("header.hh.in", "#define HEADER_HH 1\n")
+
test.run(arguments = 'target' + _obj)
expected_stdout = """\