From f015f930f1bd2d00e323274d8f9626f835c42738 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 23 Feb 2019 12:41:01 -0800 Subject: [PATCH] Enhance the signal test --- tests/signal.in | 9 +++++++++ tests/signal.out | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/tests/signal.in b/tests/signal.in index 99dd46697..76db56d2d 100644 --- a/tests/signal.in +++ b/tests/signal.in @@ -2,5 +2,14 @@ function alarm --on-signal ALRM echo ALRM received end + kill -s ALRM $fish_pid +function anychild --on-process-exit 0 + # Type and exit status + echo $argv[1] $argv[3] +end + +command false +command true +command false | command true diff --git a/tests/signal.out b/tests/signal.out index c2652b37d..234258bf5 100644 --- a/tests/signal.out +++ b/tests/signal.out @@ -1 +1,9 @@ ALRM received +PROCESS_EXIT 1 +JOB_EXIT 0 +PROCESS_EXIT 0 +JOB_EXIT 0 +PROCESS_EXIT 1 +PROCESS_EXIT 0 +JOB_EXIT 0 +PROCESS_EXIT 0