summaryrefslogtreecommitdiffstats
path: root/test/special-filenames.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-09-05 19:26:05 (GMT)
committerSteven Knight <knight@baldmt.com>2003-09-05 19:26:05 (GMT)
commitbf221d4e593f803116af76ec3bc16514b666c9f1 (patch)
treed80f1ab39365370ce1f50dba335af34f8cad83e2 /test/special-filenames.py
parentf1d7f1dc87300ea5c905c648c39aeee031100c8c (diff)
downloadSCons-bf221d4e593f803116af76ec3bc16514b666c9f1.zip
SCons-bf221d4e593f803116af76ec3bc16514b666c9f1.tar.gz
SCons-bf221d4e593f803116af76ec3bc16514b666c9f1.tar.bz2
Support construction variable expansion anywhere in a file or path name.
Diffstat (limited to 'test/special-filenames.py')
-rw-r--r--test/special-filenames.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/special-filenames.py b/test/special-filenames.py
index 2002b37..98096b7 100644
--- a/test/special-filenames.py
+++ b/test/special-filenames.py
@@ -45,7 +45,7 @@ attempt_file_names = [
"File&with&ampersand",
"File?with?question",
"File\twith\ttab",
- "File$with$dollar",
+ "File$$with$$dollar",
"Combination '\"\n\\;<>?|*\t&"
]
@@ -57,7 +57,8 @@ open(sys.argv[1], 'wb').write(open(sys.argv[2], 'rb').read())
file_names = []
for fn in attempt_file_names:
try:
- test.write(fn + '.in', fn + '\n')
+ in_name = string.replace(fn, '$$', '$') + '.in'
+ test.write(in_name, fn + '\n')
file_names.append(fn)
except IOError:
# if the Python interpreter can't handle it, don't bother
@@ -76,6 +77,7 @@ env=Environment(BUILDERS = {'Build' : Builder(action = '%s cat.py $TARGET $SOURC
test.run(arguments='.')
for fn in file_names:
- test.fail_test(test.read(fn + '.out') != fn + '\n')
+ out_name = string.replace(fn, '$$', '$') + '.out'
+ test.fail_test(test.read(out_name) != fn + '\n')
test.pass_test()