Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minishell/builtins/cd/errors/005-too-many-symbolic-links-encountered #97

Open
Wolfthuk opened this issue Dec 11, 2016 · 0 comments
Open
Assignees
Labels

Comments

@Wolfthuk
Copy link
Collaborator

minishell/builtins/cd/errors/005-too-many-symbolic-links-encountered (WARNING)

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

Before test:
01: rm -f "./symbolic_link1" "./symbolic_link2" "./symbolic_link3"
02: ln -s "./symbolic_link1" "./symbolic_link2"
03: ln -s "./symbolic_link2" "./symbolic_link3"
04: ln -s "./symbolic_link3" "./symbolic_link1"

STDIN:
01: cd symbolic_link1
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 [Tt]oo many.*symbolic links
01: cd: no such file or directory

@Wolfthuk Wolfthuk self-assigned this Dec 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant