summaryrefslogtreecommitdiff
path: root/tests/prctl-pdeathsig.test
blob: faa40dbb2a73c8b7f96a28a02a93c5c33c23e4b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
#
# Check prctl PR_GET_PDEATHSIG PR_SET_PDEATHSIG decoding.
#
# Copyright (c) 2016-2018 The strace developers.
# All rights reserved.
#
# SPDX-License-Identifier: GPL-2.0-or-later

. "${srcdir=.}/init.sh"

check_prog grep
run_prog > /dev/null
run_strace -a30 -eprctl $args > "$EXP"
grep -v '^prctl(PR_[GS]ET_[^P][^D]' < "$LOG" > "$OUT"
match_diff "$OUT" "$EXP"