rclanget / 42sh

1 stars 0 forks source link

minishell/builtins/cd/errors/001-not-a-directory #96

Closed Wolfthuk closed 7 years ago

Wolfthuk commented 7 years ago

minishell/builtins/cd/errors/001-not-a-directory (WARNING)

Description: The purpose of this test is to check that using a file name as first argument with the builtin cd results in error and not changing current directory.

Before test: 01: touch "./not_a_directory"

STDIN: 01: cd not_a_directory 02: /Users/agoomany/TRAVAIL/42ShellTester/tmp/display_pwd

STDOUT: SUCCESS expected_to match_regex PWD:/Users/agoomany/TRAVAIL/42ShellTester/tmp:PWD 01: PWD:/Users/agoomany/TRAVAIL/42ShellTester/tmp:PWD

STDERR: SUCCESS expected_to_not be_empty WARNING might match_regex [Nn]ot a directory 01: cd: permission denied