summaryrefslogtreecommitdiffstats
path: root/test/BuildDir-errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/BuildDir-errors.py')
-rw-r--r--test/BuildDir-errors.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/BuildDir-errors.py b/test/BuildDir-errors.py
index f6646a7..ead5056 100644
--- a/test/BuildDir-errors.py
+++ b/test/BuildDir-errors.py
@@ -132,12 +132,22 @@ os.chmod(dir, os.stat(dir)[stat.ST_MODE] & ~stat.S_IWUSR)
test.run(chdir = 'ro-src',
arguments = ".",
status = 2,
- stderr = "scons: *** Cannot duplicate `%s' in `build': Permission denied. Stop.\n" % os.path.join('src', 'file.in'))
+ stderr = None)
+test.fail_test(not test.match_re_dotall(test.stderr(), """\
+scons: \\*\\*\\* Cannot duplicate `src.file\\.in' in `build': Permission denied. Stop.
+scons: internal stack trace:
+ File .*
+"""))
test.run(chdir = 'ro-src',
arguments = "-k .",
status = 2,
- stderr = "scons: *** Cannot duplicate `%s' in `build': Permission denied.\n" % os.path.join('src', 'file.in'))
+ stderr = None)
+test.fail_test(not test.match_re_dotall(test.stderr(), """\
+scons: \\*\\*\\* Cannot duplicate `src.file\.in' in `build': Permission denied.
+scons: internal stack trace:
+ File .*
+"""))
f.close()