1*e9e8876aSEd Maste# This test performs validation that ssh client is not successive on being terminated 2*e9e8876aSEd Maste 3*e9e8876aSEd Mastetid="exit status on signal" 4*e9e8876aSEd Maste 5*e9e8876aSEd Maste# spawn client in background 6*e9e8876aSEd Masterm -f $OBJ/remote_pid 7*e9e8876aSEd Maste${SSH} -F $OBJ/ssh_proxy somehost 'echo $$ >'$OBJ'/remote_pid; sleep 444' & 8*e9e8876aSEd Mastessh_pid=$! 9*e9e8876aSEd Maste 10*e9e8876aSEd Maste# wait for it to start 11*e9e8876aSEd Masten=20 12*e9e8876aSEd Mastewhile [ ! -f $OBJ/remote_pid ] && [ $n -gt 0 ]; do 13*e9e8876aSEd Maste n=$(($n - 1)) 14*e9e8876aSEd Maste sleep 1 15*e9e8876aSEd Mastedone 16*e9e8876aSEd Maste 17*e9e8876aSEd Mastekill $ssh_pid 18*e9e8876aSEd Mastewait $ssh_pid 19*e9e8876aSEd Masteexit_code=$? 20*e9e8876aSEd Maste 21*e9e8876aSEd Masteif [ $exit_code -eq 0 ]; then 22*e9e8876aSEd Maste fail "ssh client should fail on signal" 23*e9e8876aSEd Mastefi 24*e9e8876aSEd Maste 25