diff options
author | Steven Knight <knight@baldmt.com> | 2009-01-28 18:37:32 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2009-01-28 18:37:32 (GMT) |
commit | 5d502b93b7554b0b16d9ca70bb1a7a74ac012a89 (patch) | |
tree | 23f691ddb96310c7a72798d015d2e25a83f504f4 /test/MSVC/msvc.py | |
parent | 0de21ca41c1db5a17b36d0fc33e8916896745aa9 (diff) | |
download | SCons-5d502b93b7554b0b16d9ca70bb1a7a74ac012a89.zip SCons-5d502b93b7554b0b16d9ca70bb1a7a74ac012a89.tar.gz SCons-5d502b93b7554b0b16d9ca70bb1a7a74ac012a89.tar.bz2 |
Relax the precompiled header performance criterion to a 15% improvement,
and print useful information if we fail to meet that.
Diffstat (limited to 'test/MSVC/msvc.py')
-rw-r--r-- | test/MSVC/msvc.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/MSVC/msvc.py b/test/MSVC/msvc.py index 3d2f1f4..c2a2d0e 100644 --- a/test/MSVC/msvc.py +++ b/test/MSVC/msvc.py @@ -172,8 +172,13 @@ start = time.time() test.run(arguments='slow.obj', stderr=None) slow = time.time() - start -# using precompiled headers should be significantly faster -assert fast < slow*0.8 +# using precompiled headers should be faster +limit = slow*0.85 +if fast >= limit: + print "Using precompiled headers was not fast enough:" + print "slow.obj: %.3fs" % slow + print "fast.obj: %.3fs (expected less than %.3fs)" % (fast, limit) + test.fail_test() # Modifying resource.h should cause both the resource and precompiled header to be rebuilt: test.write('resource.h', ''' |