File: strace--argv0.test

package info (click to toggle)
strace 6.16%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 72,592 kB
  • sloc: ansic: 179,207; sh: 9,708; makefile: 4,203; cpp: 886; awk: 353; perl: 267; exp: 62; sed: 9
file content (15 lines) | stat: -rwxr-xr-x 301 bytes parent folder | download | duplicates (9)
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