diff options
Diffstat (limited to 'tests/filter_stderr_basic')
-rwxr-xr-x | tests/filter_stderr_basic | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/filter_stderr_basic b/tests/filter_stderr_basic index c24cd5ea2..472cd8fb4 100755 --- a/tests/filter_stderr_basic +++ b/tests/filter_stderr_basic @@ -12,8 +12,9 @@ dir=`dirname $0` # Remove ==pid== and --pid-- and **pid** strings perl -p -e 's/(==|--|\*\*)[0-9]{1,7}\1 //' | -# Remove any --pid:0: strings (debuglog level zero output) -sed "/^--[0-9]\{1,7\}:0:*/d" | +# Do NOT remove debug level output, i.e. lines beginning with --pid: +# Doing so would also remove asserts from the address space manager +# and we always to see those. # Remove "Command: line". (If wrapping occurs, it won't remove the # subsequent lines...) @@ -47,9 +48,12 @@ sed "/warning: line info addresses out of order/d" | # complete list of messages in the bash source file siglist.c. perl -n -e 'print if !/^(Segmentation fault|Alarm clock|Aborted|Bus error)( \(core dumped\))?$/' | +# Similar as above, but for ksh on Solaris/illumos. +perl -n -e 'print if !/^(Memory fault|Killed) $/' | + # Translate intercepted glibc functions back to their canonical name -perl -p -e "s/: memcpy\@\@?GLIBC_[.1-9]+ \(vg_replace_strmem.c:...\)/: memcpy \(vg_replace_strmem.c:...\)/" | -sed -e "s/: \(__GI_\|__\|\)\(memcmp\|memcpy\|strcpy\|strncpy\|strchr\|strrchr\)\(\|_sse4_1\|_sse42\|_sse2_unaligned\) (vg_replace_strmem.c:/: \2 (vg_replace_strmem.c:/" | +perl -p -e "s/: memcpy\@\@?GLIBC_[.1-9]+ \(vg_replace_strmem.c:.*?\)/: memcpy \(vg_replace_strmem.c:...\)/" | +sed -e "s/: \(__GI_\|__\|\)\(memcmp\|memcpy\|strcpy\|strncpy\|strchr\|strrchr\)\(\|_sse4_1\|_sse42\|_sse2_unaligned\|_sse2\) (vg_replace_strmem.c:/: \2 (vg_replace_strmem.c:/" | # Remove any ": dumping core" message as the user might have a # limit set that prevents the core dump |