From d3faf0d27f23a069d9f645c23f990f361d180435 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 26 Dec 2005 15:58:12 +0000 Subject: [PATCH] detect excess messages after sync --- src/run-tests.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/run-tests.pl b/src/run-tests.pl index 18f1ca3..2c434e4 100755 --- a/src/run-tests.pl +++ b/src/run-tests.pl @@ -268,6 +268,11 @@ sub ckbox($$$@) print STDERR "flag mismatch for $bn:$num - expected '$flg', got '$ms{$num}[1]', config: $cfg\n"; exit 1; } + delete $ms{$num}; + } + if (%ms) { + print STDERR "excess messages in '$bn': ".join(", ", sort({$a <=> $b } keys(%ms))).", config: $cfg\n"; + exit 1; } }