From 72f883804a646818437ed3f3a973e7685415c91d Mon Sep 17 00:00:00 2001 From: Steven Knight Date: Thu, 10 Jun 2010 16:50:46 +0000 Subject: Windows portability. --- test/rebuild-generated.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 = """\ -- cgit v0.12