|
From: Bart V. A. <bar...@gm...> - 2008-03-21 18:16:49
|
By running the exp-drd regression tests on different Linux platforms I found out that some shells redirect abnormal termination messages if stderr is redirected and some do not. This can cause regression tests to fail while they should not. The patch below fixes this. Comments are welcome. If I do not receive any comments, I will apply this patch next week. Bart. Index: tests/filter_stderr_basic =================================================================== --- tests/filter_stderr_basic (revision 7740) +++ tests/filter_stderr_basic (working copy) @@ -41,6 +41,12 @@ # Remove line info out of order warnings sed "/warning: line info addresses out of order/d" | +# Older bash versions print abnormal termination messages on the stderr +# of the bash process. Newer bash versions redirect such messages properly. +# Suppress any redirected abnormal termination messages. You can find the +# complete list of messages in the bash source file siglist.c. +sed -r "/^(Segmentation fault|Alarm clock|Aborted)( \(core dumped\))?$/d" | + # Remove any ": dumping core" message as the user might have a # limit set that prevents the core dump sed "s/\(signal [0-9]* (SIG[A-Z]*)\): dumping core/\1/" |