|
From: <sv...@va...> - 2008-09-14 12:51:37
|
Author: sewardj Date: 2008-09-14 13:51:47 +0100 (Sun, 14 Sep 2008) New Revision: 8615 Log: Make the regtests work in cases where glibc (+ libdl + libpthread + ld) have been built with debugging information, hence source locs are present. Modified: branches/PTRCHECK/exp-ptrcheck/tests/filter_stderr Modified: branches/PTRCHECK/exp-ptrcheck/tests/filter_stderr =================================================================== --- branches/PTRCHECK/exp-ptrcheck/tests/filter_stderr 2008-09-14 12:51:04 UTC (rev 8614) +++ branches/PTRCHECK/exp-ptrcheck/tests/filter_stderr 2008-09-14 12:51:47 UTC (rev 8615) @@ -16,7 +16,19 @@ # Anonymise paths like "__libc_start_main (../foo/bar/libc-quux.c:129)" sed "s/__libc_\(.*\) (.*)$/__libc_\1 (...libc...)/" | +# Remove preambly stuff sed \ -e "/^exp-ptrcheck, a heap, stack & global array overrun detector\.$/d" \ -e "/^NOTE: This is an Experimental-Class Valgrind Tool.$/d" \ --e "/^Copyright (C) 2003-200., and GNU GPL'd, by OpenWorks Ltd et al.$/d" \ +-e "/^Copyright (C) 2003-200., and GNU GPL'd, by OpenWorks Ltd et al.$/d" | + +# Tidy up in cases where glibc (+ libdl + libpthread + ld) have +# been built with debugging information, hence source locs are present +sed \ +-e "s/vfprintf ([a-z]*printf.c:[0-9]*)/.../" \ +-e "s/vsprintf ([a-z]*printf.c:[0-9]*)/.../" \ +-e "s/sprintf (sprintf.c:[0-9]*)/.../" \ +-e "s/printf (printf.c:[0-9]*)/.../" \ +-e "s/strdup (strdup.c:[0-9]*)/.../" \ +-e "s/pthread_key_create.c:[0-9]*/in \/...libpthread.../" \ +-e "s/genops.c:[0-9]*/in \/...libc.../" |