xref: /aosp_15_r20/external/strace/tests-m32/prctl-securebits.test (revision cf84ac9a129d8ea9952db616b4e9b904c4bdde56)
1#!/bin/sh
2
3# Check decoding of prctl PR_GET_SECUREBITS/PR_SET_SECUREBITS operations.
4. "${srcdir=.}/init.sh"
5
6check_prog grep
7run_prog > /dev/null
8run_strace -a25 -eprctl $args > "$EXP"
9grep -v '^prctl(PR_[GS]ET_[^S][^E][^C][^U]' < "$LOG" > "$OUT"
10match_diff "$OUT" "$EXP"
11