summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-12-19 13:28:34 (GMT)
committerSteven Knight <knight@baldmt.com>2003-12-19 13:28:34 (GMT)
commit0e89b87291656533add19491bd698e8ad6c20600 (patch)
tree3a6fd59f303808e01e64fe04c480537ac0039799 /etc
parent103bcacbbd14b17ff9e98ee0e88573f357b1ae37 (diff)
downloadSCons-0e89b87291656533add19491bd698e8ad6c20600.zip
SCons-0e89b87291656533add19491bd698e8ad6c20600.tar.gz
SCons-0e89b87291656533add19491bd698e8ad6c20600.tar.bz2
Work around Cygwin Python's broken idea that it's case-sensitive. (Chad Austin)
Diffstat (limited to 'etc')
-rw-r--r--etc/TestSCons.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/TestSCons.py b/etc/TestSCons.py
index 1ce60e4..028a815 100644
--- a/etc/TestSCons.py
+++ b/etc/TestSCons.py
@@ -94,7 +94,7 @@ class TestNoResult(Exception):
if os.name == 'posix':
def _failed(self, status = 0):
- if self.status is None:
+ if self.status is None or status is None:
return None
if os.WIFSIGNALED(self.status):
return None
@@ -106,7 +106,8 @@ if os.name == 'posix':
return None
elif os.name == 'nt':
def _failed(self, status = 0):
- return not self.status is None and self.status != status
+ return not (self.status is None or status is None) and \
+ self.status != status
def _status(self):
return self.status
@@ -168,7 +169,8 @@ class TestSCons(TestCmd.TestCmd):
don't test error output.
status The expected exit status from the
- command.
+ command. A value of None means don't
+ test exit status.
By default, this does not test standard output (stdout = None),
and expects that error output is empty (stderr = "").