From c9fbea9079e2ec628704b0e9f979436eefeb943d Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Thu, 28 Aug 2014 14:59:08 +0000 Subject: [PATCH] Handle ENOSYS instread of EINVAL for some helgrind tests. Some arches (s390x and ppc64) return ENOSYS instead of EINVAL for undefined futex operations. Adjust the helgrind filter_stderr to handle that case. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14375 --- helgrind/tests/filter_stderr | 3 +++ 1 file changed, 3 insertions(+) diff --git a/helgrind/tests/filter_stderr b/helgrind/tests/filter_stderr index 3b330329ea..7b3003d533 100755 --- a/helgrind/tests/filter_stderr +++ b/helgrind/tests/filter_stderr @@ -36,6 +36,9 @@ sed \ -e "/^the cost of reduced accuracy of conflicting-access information$/d" \ -e "/pthread_create_WRK (hg_intercepts.c:/d" | +# Some arches return ENOSYS instead of EINVAL for undefined futex operations. +sed -e "s/with error code 38 (ENOSYS: Function not implemented)/with error code 22 (EINVAL: Invalid argument)/" | + $dir/../../helgrind/tests/filter_helgrind "$@" exit 0 -- 2.47.2