[cfe-commits] r62728 - /cfe/trunk/utils/CmpDriver
Daniel Dunbar
daniel at zuster.org
Wed Jan 21 15:34:24 PST 2009
Author: ddunbar
Date: Wed Jan 21 17:34:23 2009
New Revision: 62728
URL: http://llvm.org/viewvc/llvm-project?rev=62728&view=rev
Log:
Update CmpDriver to report missing commands.
Modified:
cfe/trunk/utils/CmpDriver
Modified: cfe/trunk/utils/CmpDriver
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/CmpDriver?rev=62728&r1=62727&r2=62728&view=diff
==============================================================================
--- cfe/trunk/utils/CmpDriver (original)
+++ cfe/trunk/utils/CmpDriver Wed Jan 21 17:34:23 2009
@@ -152,7 +152,16 @@
differ = True
# Compare commands.
- for i,(a,b) in enumerate(zip(infoA.commands, infoB.commands)):
+ for i,(a,b) in enumerate(map(None, infoA.commands, infoB.commands)):
+ if a is None:
+ print 'A MISSING:',' '.join(b)
+ differ = True
+ continue
+ elif b is None:
+ print 'B MISSING:',' '.join(a)
+ differ = True
+ continue
+
diff = DriverZipperDiff(a,b)
diffs = list(diff.getDiffs())
if diffs:
@@ -169,7 +178,7 @@
print 'mismatch: A: %s' % aElt
print ' B: %s' % bElt
differ = True
-
+
# Compare result codes.
if infoA.exitCode != infoB.exitCode:
print '-- EXIT CODES DIFFER -'
More information about the cfe-commits
mailing list