PATCH: Fix minor thinko in Compiler.ParseOutput

Mark Mitchell mark at codesourcery.com
Thu Dec 1 06:57:27 UTC 2005


If a diagnostic from a compiler has one severity, then it cannot also
have other severities.  So, we can exit the loop over severities
without checking them all, if we find a match.

Applied.

--
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com

2005-11-30  Mark Mitchell  <mark at codesourcery.com>

	* qm/test/compiler.py (Compiler.ParseOutput): Do not try to match
	an error message against multiple severities.

Index: qm/test/classes/compiler.py
===================================================================
RCS file: /home/qm/Repository/qm/qm/test/classes/compiler.py,v
retrieving revision 1.4
diff -c -5 -p -r1.4 compiler.py
*** qm/test/classes/compiler.py	10 Jun 2005 21:23:21 -0000	1.4
--- qm/test/classes/compiler.py	1 Dec 2005 06:55:52 -0000
*************** class GCC(Compiler):
*** 526,536 ****
                                                   column_number)
                  diagnostic = Diagnostic(source_position,
                                          severity,
                                          message)
                  diagnostics.append(diagnostic)
! 
  
          return diagnostics
  
  
  
--- 526,536 ----
                                                   column_number)
                  diagnostic = Diagnostic(source_position,
                                          severity,
                                          message)
                  diagnostics.append(diagnostic)
!                 break
  
          return diagnostics
  
  
  



More information about the qmtest mailing list