summaryrefslogtreecommitdiffstats
path: root/test/build-errors.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-04-27 03:41:27 (GMT)
committerSteven Knight <knight@baldmt.com>2003-04-27 03:41:27 (GMT)
commit98792e70711bb39b7862e4427c09787aab691631 (patch)
treebb3d460515d4d671900fa6cb5582d429de503e40 /test/build-errors.py
parenta925fbfbbecd978b6275ba0592e3bd21b0bd7781 (diff)
downloadSCons-98792e70711bb39b7862e4427c09787aab691631.zip
SCons-98792e70711bb39b7862e4427c09787aab691631.tar.gz
SCons-98792e70711bb39b7862e4427c09787aab691631.tar.bz2
Follow-up test portability fixes for IRIX. (Chad Austin)
Diffstat (limited to 'test/build-errors.py')
-rw-r--r--test/build-errors.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/build-errors.py b/test/build-errors.py
index 2cec416..ac6e066 100644
--- a/test/build-errors.py
+++ b/test/build-errors.py
@@ -26,6 +26,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
import string
+import sys
import TestCmd
import TestSCons
@@ -71,6 +72,10 @@ if os.name == 'nt':
unspecified % 'f1'
]
test.fail_test(not test.stderr() in errs)
+elif string.find(sys.platform, 'irix') != -1:
+ test.fail_test(test.stderr() != """sh: %s: not found
+scons: *** [f1] Error 127
+""" % no_such_file)
else:
test.fail_test(test.stderr() != """sh: %s: No such file or directory
scons: *** [f1] Error 127
@@ -96,6 +101,10 @@ if os.name == 'nt':
unspecified % 'f2'
]
test.fail_test(not test.stderr() in errs)
+elif string.find(sys.platform, 'irix') != -1:
+ test.fail_test(test.stderr() != """sh: %s: cannot execute
+scons: *** [f2] Error 126
+""" % not_executable)
else:
test.fail_test(test.stderr() != """sh: %s: Permission denied
scons: *** [f2] Error 126
@@ -120,6 +129,10 @@ if os.name == 'nt':
unspecified % 'f3'
]
test.fail_test(not test.stderr() in errs)
+elif string.find(sys.platform, 'irix') != -1:
+ test.fail_test(test.stderr() != """sh: %s: cannot execute
+scons: *** [f3] Error 126
+""" % test.workdir)
else:
test.fail_test(test.stderr() != """sh: %s: is a directory
scons: *** [f3] Error 126