summaryrefslogtreecommitdiffstats
path: root/utils/CmpDriver
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-21 23:34:23 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-21 23:34:23 +0000
commit163f31a0194fcff8ccea6e1c2a495f58deb286aa (patch)
treec95ef0cf6ec0d499af7b7a65dbaad3bcca8d7fc2 /utils/CmpDriver
parentc979e80a49ed0d23baafd9d96a0f16ecdc232f23 (diff)
Update CmpDriver to report missing commands.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62728 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/CmpDriver')
-rwxr-xr-xutils/CmpDriver13
1 files changed, 11 insertions, 2 deletions
diff --git a/utils/CmpDriver b/utils/CmpDriver
index cc4caad4f6..54209843df 100755
--- a/utils/CmpDriver
+++ b/utils/CmpDriver
@@ -152,7 +152,16 @@ def main():
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 @@ def main():
print 'mismatch: A: %s' % aElt
print ' B: %s' % bElt
differ = True
-
+
# Compare result codes.
if infoA.exitCode != infoB.exitCode:
print '-- EXIT CODES DIFFER -'