summaryrefslogtreecommitdiffstats
path: root/test/sconsign/script
diff options
context:
space:
mode:
Diffstat (limited to 'test/sconsign/script')
-rw-r--r--test/sconsign/script/Configure.py2
-rw-r--r--test/sconsign/script/dblite.py5
2 files changed, 7 insertions, 0 deletions
diff --git a/test/sconsign/script/Configure.py b/test/sconsign/script/Configure.py
index 607d01d..fb54dd2 100644
--- a/test/sconsign/script/Configure.py
+++ b/test/sconsign/script/Configure.py
@@ -41,6 +41,8 @@ test = TestSConsign.TestSConsign(match = TestSConsign.match_re)
CC = test.detect('CC', norm=1)
CC_dir, CC_file = os.path.split(CC)
+
+CC = re.escape(CC)
CC_dir = re.escape(os.path.normcase(CC_dir))
CC_file = re.escape(CC_file)
diff --git a/test/sconsign/script/dblite.py b/test/sconsign/script/dblite.py
index 60232de..2a53b2e 100644
--- a/test/sconsign/script/dblite.py
+++ b/test/sconsign/script/dblite.py
@@ -29,6 +29,8 @@ Verify that various ways of getting at a an sconsign file written with
the default dblite module and default .dblite suffix work correctly.
"""
+import re
+
import TestSConsign
test = TestSConsign.TestSConsign(match = TestSConsign.match_re)
@@ -37,6 +39,9 @@ CC = test.detect('CC', norm=1)
LINK = test.detect('LINK', norm=1)
if LINK is None: LINK = CC
+CC = re.escape(CC)
+LINK = re.escape(LINK)
+
test.subdir('sub1', 'sub2')
# Note: We don't use os.path.join() representations of the file names