diff options
author | Steven Knight <knight@baldmt.com> | 2004-08-19 20:13:57 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-08-19 20:13:57 (GMT) |
commit | 3922ec6d7872716f529e09bf97cc9c4314a10ae4 (patch) | |
tree | 1a4f537e9a45e20004039e1f545bdf1bd8150ef4 /test/msvc.py | |
parent | 25ab9907b429d307c67a9bf2077e714f39903029 (diff) | |
download | SCons-3922ec6d7872716f529e09bf97cc9c4314a10ae4.zip SCons-3922ec6d7872716f529e09bf97cc9c4314a10ae4.tar.gz SCons-3922ec6d7872716f529e09bf97cc9c4314a10ae4.tar.bz2 |
Restore scanning of .pch files. (Anthony Roach)
Diffstat (limited to 'test/msvc.py')
-rw-r--r-- | test/msvc.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/msvc.py b/test/msvc.py index 9f5171a..fe5bfee 100644 --- a/test/msvc.py +++ b/test/msvc.py @@ -84,6 +84,7 @@ test.write('foo.cpp', ''' test.write('StdAfx.h', ''' #include <windows.h> #include <stdio.h> +#include "resource.h" ''') test.write('StdAfx.cpp', ''' @@ -167,6 +168,16 @@ slow = time.time() - start # using precompiled headers should be significantly faster assert fast < slow*0.8 +# Modifying resource.h should cause both the resource and precompiled header to be rebuilt: +test.write('resource.h', ''' +#define IDS_TEST 2003 +''') + +test.not_up_to_date(arguments='test.res') +test.not_up_to_date(arguments='StdAfx.pch') +test.not_up_to_date(arguments='test.exe') +test.run(program=test.workpath('test.exe'), stdout='2003 test 2\n') + ########## # Test a hierarchical build |