]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Handle ENOSYS instread of EINVAL for some helgrind tests.
authorMark Wielaard <mark@klomp.org>
Thu, 28 Aug 2014 14:59:08 +0000 (14:59 +0000)
committerMark Wielaard <mark@klomp.org>
Thu, 28 Aug 2014 14:59:08 +0000 (14:59 +0000)
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

index 3b330329eaeebd51318b847cfc37ed0462668da8..7b3003d533e7e3ca9f69224f8e0a3dc08ddccb11 100755 (executable)
@@ -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