commit f5bc1801349d059f40caccc21ad289556d76e4b4
Author: Oswald Buddenhagen <[email protected]>
Date: Sun Nov 3 12:59:35 2013 +0100
properly handle unexpected exit while replaying journal
src/run-tests.pl | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/run-tests.pl b/src/run-tests.pl
index 4868cd5..ab6cc75 100755
--- a/src/run-tests.pl
+++ b/src/run-tests.pl
@@ -616,8 +616,18 @@ sub test($$)
die "Cannot read journal.\n";
my @nj = <FILE>;
close FILE;
- @ret = runsync("-0 --no-expunge");
+ ($xc, @ret) = runsync("-0 --no-expunge");
killcfg();
+ if ($xc) {
+ print "Journal replay failed.\n";
+ print "Input == Expected result:\n";
+ printchan($$tx[1], $$tx[2], @{ $$tx[3] });
+ print "Options:\n";
+ print " [ ".join(", ", map('"'.qm($_).'"', @{ $$tx[0] }))." ],
[ \"-0\", \"--no-expunge\" ]\n";
+ print "Debug output:\n";
+ print @ret;
+ exit 1;
+ }
if (ckstate("slave/.mbsyncstate", @{ $$tx[3] })) {
print "Options:\n";
print " [ ".join(", ", map('"'.qm($_).'"', @{ $$tx[0] }))."
]\n";
------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel