mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 02:13:38 +08:00
2555ecf757
Detect forbidden functions directly from the associated block_t. Also unify where we do stack overflow detection.
280 lines
4.9 KiB
Fish
280 lines
4.9 KiB
Fish
#RUN: %fish %s
|
|
|
|
# Check that we correctly detect an overflow of fish's function stack.
|
|
# This is dependent on the internal max stack depth of course.
|
|
|
|
function left
|
|
right
|
|
end
|
|
|
|
function right
|
|
left
|
|
end
|
|
|
|
left
|
|
|
|
#CHECKERR: {{.*}} The function call stack limit has been exceeded. {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|
|
#CHECKERR: {{.*}}
|