summaryrefslogtreecommitdiff
path: root/tests/bpf-success.test
blob: 4321e53217dc0b1e6084916ddd2d51095fe3b6a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -efu
#
# Copyright (c) 2018 The strace developers.
# All rights reserved.
#
# SPDX-License-Identifier: GPL-2.0-or-later

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

run_strace -a20 -e trace=bpf -e inject=bpf:retval=42 ../bpf-success > "$EXP"
match_diff "$LOG" "$EXP"