summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfergus.henderson@gmail.com <fergus.henderson@gmail.com@01de4be4-8c4a-0410-9132-4925637da917>2014-02-27 14:39:07 +0000
committerfergus.henderson@gmail.com <fergus.henderson@gmail.com@01de4be4-8c4a-0410-9132-4925637da917>2014-02-27 14:39:07 +0000
commitfded07c18b0a56f0f1b2aca373ebf6b33c891f2d (patch)
treef8581cbeceb5d242f67d1c054c5618e0fd332d1b
parent0f6ba9b6d4fe98c357a105083948b147ae6e89bc (diff)
downloaddistcc-fded07c18b0a56f0f1b2aca373ebf6b33c891f2d.tar.gz
Fix a bug where the BadLogFile_Case test was depending on gcc returning
an exit status of 1 for compilation of a non-existing file. This was causing problems with gcc 4.6.3 (and probably other gcc versions) which was returning exit status 4 in that case. I changed the test to instead use an existing file and to expect exit status 0; we don't actually fail the compilation if a bad log file is specified, instead we just log an error message about the bad log file on stderr. git-svn-id: http://distcc.googlecode.com/svn/trunk@786 01de4be4-8c4a-0410-9132-4925637da917
-rwxr-xr-xtest/testdistcc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testdistcc.py b/test/testdistcc.py
index 56216b6..f6a8e4f 100755
--- a/test/testdistcc.py
+++ b/test/testdistcc.py
@@ -1993,13 +1993,13 @@ class EmptySource_Case(Compilation_Case):
def sourceFilename(self):
return "testtmp.i"
-class BadLogFile_Case(SimpleDistCC_Case):
+class BadLogFile_Case(CompileHello_Case):
def runtest(self):
self.runcmd("touch distcc.log")
self.runcmd("chmod 0 distcc.log")
msgs, errs = self.runcmd("DISTCC_LOG=distcc.log " + \
self.distcc() + \
- _gcc + " -c foo.c", expectedResult=1)
+ _gcc + " -c testtmp.c", expectedResult=0)
self.assert_re_search("failed to open logfile", errs)