commit 5297425918b4f380de9114aed36229ac9576a106
Author: Oswald Buddenhagen <[email protected]>
Date: Sat Nov 16 13:41:27 2013 +0100
more precise failure reporting
src/run-tests.pl | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/run-tests.pl b/src/run-tests.pl
index 772b4ab..e048f20 100755
--- a/src/run-tests.pl
+++ b/src/run-tests.pl
@@ -477,7 +477,7 @@ sub ckbox($$$@)
my ($mu, %ms) = readbox($bn);
if ($mu != $MU) {
- print STDERR "MAXUID mismatch for '$bn'.\n";
+ print STDERR "MAXUID mismatch for '$bn' (got $mu, wanted
$MU).\n";
return 1;
}
while (@MS) {
@@ -522,12 +522,20 @@ sub ckstate($@)
return 1;
} else {
for $l (@ls) {
+ if (!@T) {
+ print STDERR "Excess sync state entry: '$l'.\n";
+ return 1;
+ }
$xl = shift(@T)." ".shift(@T)." ".shift(@T);
if ($l ne $xl) {
print STDERR "Sync state entry mismatch: '$l'
instead of '$xl'.\n";
return 1;
}
}
+ if (@T) {
+ print STDERR "Missing sync state entry: '".shift(@T)."
".shift(@T)." ".shift(@T)."'.\n";
+ return 1;
+ }
}
return 0;
}
------------------------------------------------------------------------------
Sponsored by Intel(R) XDK
Develop, test and display web and hybrid apps with a single code base.
Download it for free now!
http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel