File: termsig.test

package info (click to toggle)
strace 6.18%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 73,736 kB
  • sloc: ansic: 182,157; sh: 10,202; makefile: 4,225; cpp: 946; awk: 353; perl: 267; exp: 62; sed: 9
file content (27 lines) | stat: -rwxr-xr-x 713 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#
# Check termination signal forwarding.
#
# Copyright (c) 2017-2023 The strace developers.
# All rights reserved.
#
# SPDX-License-Identifier: GPL-2.0-or-later

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

run_expect_termsig="../run_expect_termsig 15"
unblock_reset_raise="../unblock_reset_raise 15"
block_reset_run="../block_reset_run 15"
orig_STRACE="$STRACE"

run_prog $run_expect_termsig $unblock_reset_raise
run_prog $run_expect_termsig $block_reset_run $unblock_reset_raise

for i in 1 2 3 4; do
	for D in '' -D; do
		for STRACE in "$run_expect_termsig $orig_STRACE" \
			      "$run_expect_termsig $block_reset_run $orig_STRACE"; do
			run_strace -I$i $D -enone -esignal=none $unblock_reset_raise
		done
	done
done