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
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:PWDSTDERR: SUCCESS expected_to_not be_empty WARNING might match_regex
[Nn]ot a directory
01: cd: permission denied