xref: /aosp_15_r20/external/strace/tests-m32/prctl-name.test (revision cf84ac9a129d8ea9952db616b4e9b904c4bdde56)
1*cf84ac9aSAndroid Build Coastguard Worker#!/bin/sh
2*cf84ac9aSAndroid Build Coastguard Worker
3*cf84ac9aSAndroid Build Coastguard Worker# Check decoding of prctl PR_GET_NAME/PR_SET_NAME operations.
4*cf84ac9aSAndroid Build Coastguard Worker. "${srcdir=.}/init.sh"
5*cf84ac9aSAndroid Build Coastguard Worker
6*cf84ac9aSAndroid Build Coastguard Workercheck_prog grep
7*cf84ac9aSAndroid Build Coastguard Workerrun_prog > /dev/null
8*cf84ac9aSAndroid Build Coastguard Workerrun_strace -a23 -eprctl $args > "$EXP"
9*cf84ac9aSAndroid Build Coastguard Workergrep -v '^prctl(PR_GET_[^N][^A]' < "$LOG" > "$OUT"
10*cf84ac9aSAndroid Build Coastguard Workermatch_diff "$OUT" "$EXP"
11