Parcourir la source

sync state reader:
- grok negative uids
- more robust

Oswald Buddenhagen il y a 19 ans
Parent
commit
924e1a7f04
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/run-tests.pl

+ 4 - 1
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 {