Closed Wolfthuk closed 7 years ago
minishell/binary/007-binary-permission-denied (WARNING)
Description: The purpose of this test is to check that trying to execute a non-permitted binary results in an error on standard error and a failure exit status.
Before test: 01: rm -rf ./permission_denied 02: touch ./permission_denied 03: chmod 0 ./permission_denied
STDIN: 01: ./permission_denied
STDOUT: SUCCESS might be_empty (no output)
STDERR: SUCCESS expected_to_not be_empty WARNING might match_regex [Pp]ermission denied 01: 42sh: ./permission_denied: command not found
[Pp]ermission denied
MISC: SUCCESS expected_to_not exit_with_status 0
After test: 01: if [ -d "./permission_denied" ]; then chmod 777 "./permission_denied"; fi 02: rm -rf "./permission_denied"
minishell/binary/007-binary-permission-denied (WARNING)
Description: The purpose of this test is to check that trying to execute a non-permitted binary results in an error on standard error and a failure exit status.
Before test: 01: rm -rf ./permission_denied 02: touch ./permission_denied 03: chmod 0 ./permission_denied
STDIN: 01: ./permission_denied
STDOUT: SUCCESS might be_empty (no output)
STDERR: SUCCESS expected_to_not be_empty WARNING might match_regex
[Pp]ermission denied
01: 42sh: ./permission_denied: command not foundMISC: SUCCESS expected_to_not exit_with_status 0
After test: 01: if [ -d "./permission_denied" ]; then chmod 777 "./permission_denied"; fi 02: rm -rf "./permission_denied"