1*cf84ac9aSAndroid Build Coastguard Worker#!/bin/sh 2*cf84ac9aSAndroid Build Coastguard Worker 3*cf84ac9aSAndroid Build Coastguard Worker# Check that in interactive mode those signals that were blocked 4*cf84ac9aSAndroid Build Coastguard Worker# at strace startup will remain blocked. 5*cf84ac9aSAndroid Build Coastguard Worker 6*cf84ac9aSAndroid Build Coastguard Worker. "${srcdir=.}/init.sh" 7*cf84ac9aSAndroid Build Coastguard Worker 8*cf84ac9aSAndroid Build Coastguard Workerstrace0="$STRACE" 9*cf84ac9aSAndroid Build Coastguard Workerfor signo in 1 2 3 13 14 15; do 10*cf84ac9aSAndroid Build Coastguard Worker blocksig="../block_reset_raise_run $signo" 11*cf84ac9aSAndroid Build Coastguard Worker run_prog $blocksig ../umovestr 12*cf84ac9aSAndroid Build Coastguard Worker STRACE="$blocksig $strace0" 13*cf84ac9aSAndroid Build Coastguard Worker run_strace -I2 -echdir ../umovestr 14*cf84ac9aSAndroid Build Coastguard Worker match_diff "$LOG" "$srcdir/umovestr.expected" 15*cf84ac9aSAndroid Build Coastguard Workerdone 16