]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Regtest: filter out pathname from memcheck dw4 test
authorPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 11 Mar 2025 08:10:42 +0000 (09:10 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Tue, 11 Mar 2025 08:10:42 +0000 (09:10 +0100)
memcheck/tests/dw4.stderr.exp
memcheck/tests/filter_dw4.in

index e4b523f9821437747735866e6f7e8820a0c4f8e6..02c5955110e70c73e1c1e29313958c6cb8d5eca3 100644 (file)
@@ -35,12 +35,12 @@ Unaddressable byte(s) found during client check request
 Uninitialised byte(s) found during client check request
    at 0x........: croak (dw4.c:32)
    by 0x........: main (dw4.c:89)
- Address 0x........ is in a rw- mapped file /export/home/paulf/valgrind/memcheck/tests/dw4 segment
+ Address 0x........ is in a rw- mapped file DIRECTORY/dw4 segment
 
 Uninitialised byte(s) found during client check request
    at 0x........: croak (dw4.c:32)
    by 0x........: main (dw4.c:91)
- Address 0x........ is in a rw- mapped file /export/home/paulf/valgrind/memcheck/tests/dw4 segment
+ Address 0x........ is in a rw- mapped file DIRECTORY/dw4 segment
 
 Unaddressable byte(s) found during client check request
    at 0x........: croak (dw4.c:25)
index 96b6ab8f5086159f26deb8bb0ed9090c8b2d1ed2..d729ad6e81795ceb0ea0965fcdf87cc9b1b8901a 100755 (executable)
@@ -9,6 +9,9 @@ $SED "s/inside a block of size [0-9]* alloc'd/inside a block of size ... alloc'd
 # remove directory name and pid from mapped filename
 $SED "s/file .*valgrind-dw4-test.[1-9][0-9]*/file valgrind-dw4-test.PID/" |
 
+# remove name from mapped file segment
+$SED "s#is in a rw- mapped file .*/dw4 segment#is in a rw- mapped file DIRECTORY/dw4 segment#" |
+
 ./filter_stderr "$@"
 
 exit 0