summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-05-20 03:09:28 (GMT)
committerSteven Knight <knight@baldmt.com>2003-05-20 03:09:28 (GMT)
commite3886d4e33ba4262c6a17494ca80a14f71c18971 (patch)
treea36f93c7b96f9578d86df040417be689dfe53019
parente4c92bc43a3c0a61186256315952047a0b998cab (diff)
downloadSCons-e3886d4e33ba4262c6a17494ca80a14f71c18971.zip
SCons-e3886d4e33ba4262c6a17494ca80a14f71c18971.tar.gz
SCons-e3886d4e33ba4262c6a17494ca80a14f71c18971.tar.bz2
Fix test/msvc.py. (Anthony Roach)
-rw-r--r--test/msvc.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/msvc.py b/test/msvc.py
index 3d7e324..c937e22 100644
--- a/test/msvc.py
+++ b/test/msvc.py
@@ -41,9 +41,9 @@ if sys.platform != 'win32':
test.write('SConstruct',"""
env=Environment()
-env['PCH'] = env.PCH('StdAfx.cpp')[0]
env['PDB'] = File('test.pdb')
env['PCHSTOP'] = 'StdAfx.h'
+env['PCH'] = env.PCH('StdAfx.cpp')[0]
env.Program('test', ['test.cpp', env.RES('test.rc')], LIBS=['user32'])
env.Object('fast', 'foo.cpp')
@@ -153,7 +153,7 @@ test.run(arguments='slow.obj')
slow = time.time() - start
# using precompiled headers should be significantly faster
-assert fast < slow*0.75
+assert fast < slow*0.8
##########
@@ -168,10 +168,10 @@ SConscript('build/SConscript')
test.write('src/SConscript',"""
env=Environment()
-env.PCH('StdAfx.cpp')
env['PCH'] = 'StdAfx.pch'
env['PDB'] = '#out/test.pdb'
env['PCHSTOP'] = 'StdAfx.h'
+env.PCH('StdAfx.cpp')
env.Program('#out/test.exe', 'test.cpp')
""")
@@ -209,8 +209,8 @@ test.fail_test(os.path.exists(test.workpath('build/StdAfx.obj')))
test.write('SConstruct',"""
env=Environment()
-env['PCH'] = env.PCH('StdAfx.cpp')[0]
env['PDB'] = File('test.pdb')
+env['PCH'] = env.PCH('StdAfx.cpp')[0]
env.Program('test', 'test.cpp')
""")
@@ -221,9 +221,9 @@ File "SConstruct", line 5, in \?
test.write('SConstruct',"""
env=Environment()
-env['PCH'] = env.PCH('StdAfx.cpp')[0]
env['PDB'] = File('test.pdb')
env['PCHSTOP'] = File('StdAfx.h')
+env['PCH'] = env.PCH('StdAfx.cpp')[0]
env.Program('test', 'test.cpp')
""")