summaryrefslogtreecommitdiff
path: root/test/Configure
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2009-01-20 14:46:23 +0000
committerSteven Knight <knight@baldmt.com>2009-01-20 14:46:23 +0000
commita0303547bbaf547143f470ec8eb693a376d4fff1 (patch)
tree8d9f2ca0a92b960ce311c18605c9c6601e629e14 /test/Configure
parentbe691c26a9efdc7f4a8c8ec396e3cbef6d0cee80 (diff)
downloadscons-a0303547bbaf547143f470ec8eb693a376d4fff1.tar.gz
Escape path names to fix regular expression matches on Windows
when \ is the path separator.
Diffstat (limited to 'test/Configure')
-rw-r--r--test/Configure/build-fail.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Configure/build-fail.py b/test/Configure/build-fail.py
index 2facb810..4e63f83a 100644
--- a/test/Configure/build-fail.py
+++ b/test/Configure/build-fail.py
@@ -37,6 +37,7 @@ Thanks to Ben Webb for the test case.
"""
import os
+import re
import TestSCons
@@ -73,12 +74,12 @@ conf.Finish()
test.write(['b', 'boost.hpp'], """#define FILE "b/boost.hpp"\n""")
-expect = test.wrap_stdout(read_str = "%s: yes\n" % b_boost_hpp,
+expect = test.wrap_stdout(read_str = "%s: yes\n" % re.escape(b_boost_hpp),
build_str = "scons: `.' is up to date.\n")
test.run(arguments='--config=force', stdout=expect)
-expect = test.wrap_stdout(read_str = "%s: yes\n" % a_boost_hpp,
+expect = test.wrap_stdout(read_str = "%s: yes\n" % re.escape(a_boost_hpp),
build_str = "scons: `.' is up to date.\n")
test.write(['a', 'boost.hpp'], """#define FILE "a/boost.hpp"\n""")