Add test for caller-exit events

This was a bit fiddly!
This commit is contained in:
Fabian Homborg 2021-03-07 10:22:35 +01:00
parent 371516382d
commit 56e1109609

View File

@ -101,3 +101,18 @@ echo $status
#CHECK: Command
#CHECK: sleep
#CHECK: 0
function foo
function caller --on-job-exit caller
echo caller
end
echo foo
end
function bar --on-event bar
echo (foo)
end
emit bar
#CHECK: foo
#CHECK: caller