From: Mark Wielaard Date: Thu, 28 Aug 2014 14:59:08 +0000 (+0000) Subject: Handle ENOSYS instread of EINVAL for some helgrind tests. X-Git-Tag: svn/VALGRIND_3_10_0~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9fbea9079e2ec628704b0e9f979436eefeb943d;p=thirdparty%2Fvalgrind.git 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 --- 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