diff options
author | William Deegan <bill@baddogconsulting.com> | 2021-08-30 18:17:11 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2021-09-18 23:45:11 (GMT) |
commit | 7509249088a01e7ef40ee317d2bc03e4cbc3e1de (patch) | |
tree | 354b946977d913e4f6f629421e28530f642ef882 | |
parent | 6ce0d1cdef501b91b6c3aa99830af715f6193c67 (diff) | |
download | SCons-7509249088a01e7ef40ee317d2bc03e4cbc3e1de.zip SCons-7509249088a01e7ef40ee317d2bc03e4cbc3e1de.tar.gz SCons-7509249088a01e7ef40ee317d2bc03e4cbc3e1de.tar.bz2 |
update pch_gen test to use non-default names and verify existance of expected files
-rw-r--r-- | test/MSVC/pch_gen/fixture/SConstruct | 4 | ||||
-rw-r--r-- | test/MSVC/pch_gen/pch_gen.py | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/test/MSVC/pch_gen/fixture/SConstruct b/test/MSVC/pch_gen/fixture/SConstruct index 1a5d3ab..f0b3738 100644 --- a/test/MSVC/pch_gen/fixture/SConstruct +++ b/test/MSVC/pch_gen/fixture/SConstruct @@ -9,9 +9,9 @@ env['PDB'] = File('test.pdb') env['PCHSTOP'] = 'StdAfx.h' def pch_gen(env, target, source, for_signature): - return 'StdAfx.pch' + return 'StdAfx-1.pch' env['PCH'] = pch_gen -env.PCH('StdAfx.cpp')[0] +env.PCH('StdAfx-1.pch', 'StdAfx.cpp')[0] env.Program('test', ['test.cpp', env.RES('test.rc')], LIBS=['user32']) env.Object('fast', 'foo.cpp') diff --git a/test/MSVC/pch_gen/pch_gen.py b/test/MSVC/pch_gen/pch_gen.py index 690db35..b6da454 100644 --- a/test/MSVC/pch_gen/pch_gen.py +++ b/test/MSVC/pch_gen/pch_gen.py @@ -43,6 +43,13 @@ test.file_fixture('fixture/SConstruct', test.run(arguments='.') +test.must_exist(test.workpath('test.exe')) +test.must_exist(test.workpath('test.res')) +test.must_exist(test.workpath('test.pdb')) +test.must_exist(test.workpath('StdAfx-1.pch')) +test.must_exist(test.workpath('StdAfx-1.obj')) + + test.pass_test() # Local Variables: |