Fix $pid -> $fish_pid in signals.expect

This was a expect variable, not a fish one.
This commit is contained in:
Mahmoud Al-Qudsi 2018-03-24 12:15:56 -05:00
parent 8bbecb66cf
commit c0535b4e13

View File

@ -12,13 +12,13 @@ expect_prompt
send "sleep 131 &\r"
expect_prompt
send "sleep 132\r"
exec -- kill -HUP $fish_pid
exec -- kill -HUP $pid
# Verify the spawned fish shell has exited.
catch {expect default exp_continue} output
wait
# Verify all child processes have been killed. We don't use `-p $fish_pid` because
# Verify all child processes have been killed. We don't use `-p $pid` because
# if the shell has a bug the child processes might have been reparented to pid
# 1 rather than killed.
set status [catch {exec pgrep -l -f "sleep 13"} output]