]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
modify massif/tests/mmapunmap.vgtest to comply with glibc change
authorPetar Jovanovic <mips32r2@gmail.com>
Mon, 4 Mar 2019 18:24:55 +0000 (19:24 +0100)
committerPetar Jovanovic <mips32r2@gmail.com>
Mon, 4 Mar 2019 18:26:37 +0000 (19:26 +0100)
The change in the glibc version (2.27 -> 2.28) results in one additional
function call being present in the backtrace for mips64, which leads to the
line to be checked to be out of bounds.

Changed the post line in mmapunmap.vgtest to work around this.

This fixes massif/tests/mmapunmap failure on mips64.

Patch by Stefan Maksimovic.

massif/tests/mmapunmap.vgtest

index 9cf746e9784b1adb4b016dc26b7286aa3ee7d24c..6605299e9c3a5c4b4df6fc9a8619ef0de81fca06 100644 (file)
@@ -2,5 +2,5 @@ prog: mmapunmap
 vgopts: --pages-as-heap=yes --threshold=30.0 -q
 vgopts: --stacks=no --time-unit=B --depth=8 --massif-out-file=massif.out
 vgopts: --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element
-post: grep -A4 -e =peak massif.out | grep -e 'main (mmapunmap.c:16)\|(below main)' | tr -s ' ' | ../../tests/filter_addresses | ../../tests/filter_libc
+post: grep -A5 -e =peak massif.out | grep -e 'main (mmapunmap.c:16)\|(below main)' | tr -s ' ' | ../../tests/filter_addresses | ../../tests/filter_libc
 cleanup: rm massif.out