From 924e1a7f04af216bece12a32744ec0d26301159c Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 26 Dec 2005 15:57:06 +0000 Subject: [PATCH] sync state reader: - grok negative uids - more robust --- src/run-tests.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/run-tests.pl b/src/run-tests.pl index 2e32159..18f1ca3 100755 --- 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 () { - /^(\d+) (\d+) (.*)\n$/; + if (!/^(-?\d+) (-?\d+) (.*)\n$/) { + print STDERR "Malformed sync state entry '$_'.\n"; + next; + } if ($frst) { $frst = 0; } else {