diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-03-30 21:16:05 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-03-30 21:16:05 +0000 |
commit | 87a68e7a1b2145f8f752428e319881d2b0d50ac3 (patch) | |
tree | 5fb0be7eceb2b134bc8213a550b0ff6677199731 | |
parent | 50d771b802bf549e991baf64d2686abbe9972bca (diff) | |
download | strace-87a68e7a1b2145f8f752428e319881d2b0d50ac3.tar.gz |
tests: re-enable umovestr_cached.test on ia64 if PTRACE_GET_SYSCALL_INFO works
If PTRACE_GET_SYSCALL_INFO works, then the exception made for ia64
earlier is not relevant.
* tests/umovestr_cached.test [$STRACE_ARCH == ia64]: Do not skip
the test if PTRACE_GET_SYSCALL_INFO works.
Complements: v5.3~23 "tests: disable umovestr_cached.test on ia64"
-rwxr-xr-x | tests/umovestr_cached.test | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/tests/umovestr_cached.test b/tests/umovestr_cached.test index 6150a49a9..349a15ca0 100755 --- a/tests/umovestr_cached.test +++ b/tests/umovestr_cached.test @@ -9,15 +9,20 @@ . "${srcdir=.}/init.sh" -run_strace_match_diff -e trace=writev - -if [ "$STRACE_ARCH" = ia64 ]; then - # ia64 invokes extra process_vm_readv syscalls to obtain syscall - # arguments, see linux/ia64/get_syscall_args.c for details. - skip_ "the test is not supported on $STRACE_ARCH yet" -fi - check_prog grep +$STRACE -d -enone / > /dev/null 2> "$LOG" +grep -x "[^:]*strace: PTRACE_GET_SYSCALL_INFO works" "$LOG" > /dev/null || { + # PTRACE_GET_SYSCALL_INFO does not work + case "$STRACE_ARCH" in + ia64) + # ia64 invokes extra process_vm_readv syscalls to obtain syscall + # arguments, see linux/ia64/get_syscall_args.c for details. + skip_ "the test is not supported on $STRACE_ARCH yet" + ;; + esac +} + +run_strace_match_diff -e trace=writev run_strace -qq -esignal=none -eprocess_vm_readv -z \ -o '|grep -c ^process_vm_readv > count' \ |