commit 924e1a7f04af216bece12a32744ec0d26301159c
parent 963f607c81395f9c8a90cf0bc7600e163951c7a9
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date: Mon, 26 Dec 2005 15:57:06 +0000
sync state reader:
- grok negative uids
- more robust
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/run-tests.pl b/src/run-tests.pl
@@ -341,7 +341,10 @@ sub showchan()
print " [ $1, $2, $3,\n ";
my $frst = 1;
for (<FILE>) {
- /^(\d+) (\d+) (.*)\n$/;
+ if (!/^(-?\d+) (-?\d+) (.*)\n$/) {
+ print STDERR "Malformed sync state entry '$_'.\n";
+ next;
+ }
if ($frst) {
$frst = 0;
} else {