From 36beb03eba5009ca7054a9b32b966bf211e839b8 Mon Sep 17 00:00:00 2001 From: Godmar Back Date: Fri, 10 Nov 2006 04:34:20 +0000 Subject: [PATCH] - when ignoring exit codes, ignore exit(-1) also (previously didn't allow '-') --- src/tests/tests.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/tests.pm b/src/tests/tests.pm index 5e34e86..822e7c9 100644 --- a/src/tests/tests.pm +++ b/src/tests/tests.pm @@ -154,7 +154,7 @@ sub compare_output { my $ignore_exit_codes = exists $options{IGNORE_EXIT_CODES}; if ($ignore_exit_codes) { delete $options{IGNORE_EXIT_CODES}; - @output = grep (!/^[a-zA-Z0-9-_]+: exit\(\d+\)$/, @output); + @output = grep (!/^[a-zA-Z0-9-_]+: exit\(\-?\d+\)$/, @output); } my $ignore_user_faults = exists $options{IGNORE_USER_FAULTS}; if ($ignore_user_faults) { -- 2.30.2