summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917>2011-06-28 20:13:34 +0000
committerfergus.henderson <fergus.henderson@01de4be4-8c4a-0410-9132-4925637da917>2011-06-28 20:13:34 +0000
commit2a2e30abc22ea32985ee0ea055f0eafc195c777a (patch)
treed937d6f0cef9c8c7ceb4deb30cf75929b0a5be34
parenta43fb7b6395b75113a800902fe18ae9c73e77e8f (diff)
downloaddistcc-2a2e30abc22ea32985ee0ea055f0eafc195c777a.tar.gz
Apply patch from Ihor Kaharlichenko <madkinder> to fix issue 81
<http://code.google.com/p/distcc/issues/detail?id=81>: SyntaxError_Case was failing with recent versions of gcc, due to the error message format having changed to now include the column number. Also remove an old "XXX" comment that no longer applies. git-svn-id: http://distcc.googlecode.com/svn/trunk@742 01de4be4-8c4a-0410-9132-4925637da917
-rwxr-xr-xtest/testdistcc.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/testdistcc.py b/test/testdistcc.py
index 0a5f0cd..d5b645d 100755
--- a/test/testdistcc.py
+++ b/test/testdistcc.py
@@ -1838,8 +1838,7 @@ class SyntaxError_Case(Compilation_Case):
def compile(self):
rc, msgs, errs = self.runcmd_unchecked(self.compileCmd())
self.assert_notequal(rc, 0)
- # XXX: Need to also handle "syntax error" from gcc-2.95.3
- self.assert_re_match(r'testtmp.c:1: .*error', errs)
+ self.assert_re_match(r'testtmp.c:1:.*error', errs)
self.assert_equal(msgs, '')
def runtest(self):