rclanget/42sh

minishell/builtins/exit/003-status-of-last-command

Closed this issue · 1 comments

minishell/builtins/exit/003-status-of-last-command (FAILED)

Description:
The purpose of this test is to check that using the builtin exit without any argument results in a Shell termination and the exit status of the previous command.

STDIN:
01: ./exit_with_status 42
02: exit

STDOUT:
SUCCESS might be_empty
(no output)

STDERR:
(no output)

MISC:
FAILURE expected_to exit_with_status 42