From: stevenknight Date: Wed, 17 Apr 2002 15:12:19 +0000 (+0000) Subject: Win32 portability fix for the --debug=dtree test. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e430e466cef1aa00409b5bb800b70f11f58e6df;p=scons.git Win32 portability fix for the --debug=dtree test. git-svn-id: http://scons.tigris.org/svn/scons/trunk@335 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/test/option--debug.py b/test/option--debug.py index ff791f0f..035525e2 100644 --- a/test/option--debug.py +++ b/test/option--debug.py @@ -31,7 +31,7 @@ import string test = TestSCons.TestSCons() test.write('SConstruct', """ -env = Environment() +env = Environment(OBJSUFFIX = '.ooo', PROGSUFFIX = '.xxx') env.Program('foo', 'foo.c bar.c') """) @@ -63,41 +63,35 @@ test.write('bar.h', """ #endif """) - -if sys.platform == 'win32': - foo = 'foo.exe' -else: - foo = 'foo' - -test.run(arguments = "--debug=tree " + foo) +test.run(arguments = "--debug=tree foo.xxx") import SCons.Defaults obj = SCons.Defaults.ConstructionEnvironment['OBJSUFFIX'] tree = """ -+-%s - +-foo%s ++-foo.xxx + +-foo.ooo | +-foo.c | +-foo.h | +-bar.h - +-bar%s + +-bar.ooo +-bar.c +-bar.h +-foo.h -""" % (foo, obj,obj) +""" test.fail_test(string.find(test.stdout(), tree) == -1) -test.run(arguments = "--debug=tree " + foo) +test.run(arguments = "--debug=tree foo.xxx") test.fail_test(string.find(test.stdout(), tree) == -1) tree = """ -+-%s - +-foo%s - +-bar%s -""" % (foo, obj,obj) ++-foo.xxx + +-foo.ooo + +-bar.ooo +""" -test.run(arguments = "--debug=dtree " + foo) +test.run(arguments = "--debug=dtree foo.xxx") test.fail_test(string.find(test.stdout(), tree) == -1) tree = """scons: \".\" is up to date. @@ -106,26 +100,26 @@ tree = """scons: \".\" is up to date. +-SConstruct +-bar.c +-bar.h - +-bar%(obj)s + +-bar.ooo | +-bar.c | +-bar.h | +-foo.h - +-%(foo)s - | +-foo%(obj)s - | | +-foo.c - | | +-foo.h - | | +-bar.h - | +-bar%(obj)s - | +-bar.c - | +-bar.h - | +-foo.h +-foo.c +-foo.h - +-foo%(obj)s - +-foo.c - +-foo.h - +-bar.h -""" % globals() + +-foo.ooo + | +-foo.c + | +-foo.h + | +-bar.h + +-foo.xxx + +-foo.ooo + | +-foo.c + | +-foo.h + | +-bar.h + +-bar.ooo + +-bar.c + +-bar.h + +-foo.h +""" test.run(arguments = "--debug=tree .") test.fail_test(string.find(test.stdout(), tree) != 0)