diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-04-01 23:21:59 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-04-01 23:21:59 +0000 |
commit | 6ee9d691cf3d6506c681bccdae2b4e3924fbd5b1 (patch) | |
tree | b25488106e31d03112ee0455d4e25832624a26cd | |
parent | 2387a5f578634a9f5cbd26b5b73549b406ce1291 (diff) | |
download | strace-6ee9d691cf3d6506c681bccdae2b4e3924fbd5b1.tar.gz |
tests: add a workaround for trace_creds test on mips o32
Since every mips o32 executable used by trace_creds test invokes
prctl(PR_GET_FP_MODE) on their own and these calls are not filtered out
by %creds, they have to be filtered out manually before comparison.
* tests/init.sh (test_pure_prog_set) [$STRACE_ARCH == mips &&
$MIPS_ABI == o32 && $NAME == *creds]: Filter out prctl(PR_GET_FP_MODE)
from the strace log before comparison.
-rw-r--r-- | tests/init.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/init.sh b/tests/init.sh index e5de1c25c..fa3c5c42f 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -340,6 +340,13 @@ test_pure_prog_set() try_run_prog "../$t" || continue run_strace $prog_args "$@" "../$t" > "$expfile" + + case "$STRACE_ARCH:$MIPS_ABI:$NAME" in + mips:o32:*creds) + sed -i '/^prctl(PR_GET_FP_MODE) *= 0$/d' "$LOG" + ;; + esac + match_diff "$LOG" "$expfile" } < /dev/null; done } |