summaryrefslogtreecommitdiff
path: root/test/ToolSurrogate.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-08-19 23:06:05 +0000
committerSteven Knight <knight@baldmt.com>2003-08-19 23:06:05 +0000
commitda45157ba79c6e988c0ac89555141d02d23c5f29 (patch)
tree22791a098172f2e7191e0c35debf11b5da26e0ed /test/ToolSurrogate.py
parente167fa6ca236dbe95f2a09a63a333436d50b3370 (diff)
downloadscons-da45157ba79c6e988c0ac89555141d02d23c5f29.tar.gz
Portability fixes for tests.
Diffstat (limited to 'test/ToolSurrogate.py')
-rw-r--r--test/ToolSurrogate.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ToolSurrogate.py b/test/ToolSurrogate.py
index f33d8048..dc190dd0 100644
--- a/test/ToolSurrogate.py
+++ b/test/ToolSurrogate.py
@@ -80,22 +80,22 @@ ToolList = {
platform = ARGUMENTS['platform']
tools = map(lambda t: apply(ToolSurrogate, t), ToolList[platform])
-env = Environment(tools = tools)
+env = Environment(tools=tools, PROGSUFFIX='.exe', OBJSUFFIX='.obj')
env.Program('foo.c')
""")
test.write('foo.c', "foo.c posix\n")
test.run(arguments = '. platform=posix', stdout = test.wrap_stdout("""\
-cc -c -o foo.o foo.c
-c++ -o foo foo.o
+cc -c -o foo.obj foo.c
+c++ -o foo.exe foo.obj
"""))
test.write('foo.c', "foo.c win32\n")
test.run(arguments = '. platform=win32', stdout = test.wrap_stdout("""\
-cl /nologo /c foo.c /Fofoo.o
-link /nologo /OUT:foo foo.o
+cl /nologo /c foo.c /Fofoo.obj
+link /nologo /OUT:foo.exe foo.obj
"""))
test.pass_test()