diff options
author | Steven Knight <knight@baldmt.com> | 2010-06-10 16:50:46 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-06-10 16:50:46 (GMT) |
commit | 72f883804a646818437ed3f3a973e7685415c91d (patch) | |
tree | 544fe4eca6c9abd00be992f420aeae92427d0443 /test | |
parent | c34c9ced016ddefd7ab74cb4dd3e8832c45ce812 (diff) | |
download | SCons-72f883804a646818437ed3f3a973e7685415c91d.zip SCons-72f883804a646818437ed3f3a973e7685415c91d.tar.gz SCons-72f883804a646818437ed3f3a973e7685415c91d.tar.bz2 |
Windows portability.
Diffstat (limited to 'test')
-rw-r--r-- | test/rebuild-generated.py | 6 |
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 = """\ |