summaryrefslogtreecommitdiff
path: root/test/redirection.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-08-17 07:16:58 +0000
committerSteven Knight <knight@baldmt.com>2004-08-17 07:16:58 +0000
commit483564c8512e0eaccadb2aebe03e7e928225063b (patch)
tree75da8912f958215a28bc564dac4fcf8f5a3f8bf2 /test/redirection.py
parent3a04ee14eb94ec69fb9b1e0a8ca5bc2e209cf38c (diff)
downloadscons-483564c8512e0eaccadb2aebe03e7e928225063b.tar.gz
Test portability fix. Fix handling of >.
Diffstat (limited to 'test/redirection.py')
-rw-r--r--test/redirection.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/redirection.py b/test/redirection.py
index cc356c60..5aac5176 100644
--- a/test/redirection.py
+++ b/test/redirection.py
@@ -49,16 +49,21 @@ env.Command(target='foo2', source='bar2',
action= '%s cat.py < $SOURCES > $TARGET')
env.Command(target='foo3', source='bar3',
action='%s cat.py $SOURCES | %s cat.py > $TARGET')
-""" % (python, python, python, python))
+env.Command(target='foo4', source='bar4',
+ action='%s cat.py <$SOURCES |%s cat.py >$TARGET')
+""" % (python, python, python, python, python, python))
test.write('bar1', 'bar1\r\n')
test.write('bar2', 'bar2\r\n')
test.write('bar3', 'bar3\r\n')
+test.write('bar4', 'bar4\r\n')
test.run(arguments='.')
+
test.fail_test(test.read('foo1') != 'bar1\r\n')
test.fail_test(test.read('foo2') != 'bar2\r\n')
test.fail_test(test.read('foo3') != 'bar3\r\n')
+test.fail_test(test.read('foo4') != 'bar4\r\n')
test.pass_test()