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 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/helgrind/tests/filter_stderr b/helgrind/tests/filter_stderr
index 3b33032..7b3003d 100755
--- a/helgrind/tests/filter_stderr
+++ b/helgrind/tests/filter_stderr
@@ -36,6 +36,9 @@
  -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