diff options
Diffstat (limited to 'test/MSVC/PCHSTOP-errors.py')
-rw-r--r-- | test/MSVC/PCHSTOP-errors.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/MSVC/PCHSTOP-errors.py b/test/MSVC/PCHSTOP-errors.py index 6ffd11a..a460283 100644 --- a/test/MSVC/PCHSTOP-errors.py +++ b/test/MSVC/PCHSTOP-errors.py @@ -56,8 +56,7 @@ env.Program('test', 'test.cpp') expect_stderr = r''' scons: \*\*\* The PCHSTOP construction must be defined if PCH is defined. -File "%s", line \d+, in \? -''' % re.escape(SConstruct_path) +''' + TestSCons.file_expr test.run(arguments='SET_PCHSTOP=0', status=2, stderr=expect_stderr) @@ -65,8 +64,7 @@ test.run(arguments='SET_PCHSTOP=0', status=2, stderr=expect_stderr) expect_stderr = r''' scons: \*\*\* The PCHSTOP construction variable must be a string: .+ -File "%s", line \d+, in \? -''' % re.escape(SConstruct_path) +''' + TestSCons.file_expr test.run(arguments='SET_PCHSTOP=1', status=2, stderr=expect_stderr) |