summaryrefslogtreecommitdiff
path: root/tests/strace--argv0.test
blob: d70efaae4896dbc9e866e04ecf7f3215e57432e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -efu
#
# Check decoding of --argv0 option.
#
# Copyright (c) 2023 The strace developers.
# All rights reserved.
#
# SPDX-License-Identifier: GPL-2.0-or-later

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

args=
run_prog ../fchdir > /dev/null
run_strace --argv0=sample --trace=execve $args > /dev/null
match_grep