diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-07 18:58:12 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-07 18:58:12 +0200 |
| commit | 0cf5d76836a6499de4e30c4066d8709099ff6331 (patch) | |
| tree | 65606b51f97fc88ac0953d73d760995fb759442a /src/suites | |
| parent | 2a93ed69f7ee88c26b1edfb1f58a8f4d6d842bd4 (diff) | |
| download | minishell_test-0cf5d76836a6499de4e30c4066d8709099ff6331.tar.gz minishell_test-0cf5d76836a6499de4e30c4066d8709099ff6331.tar.bz2 minishell_test-0cf5d76836a6499de4e30c4066d8709099ff6331.zip | |
Added memory leak checking
Diffstat (limited to 'src/suites')
| -rw-r--r-- | src/suites/path.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/suites/path.py b/src/suites/path.py index 3bf38c6..d5dabb6 100644 --- a/src/suites/path.py +++ b/src/suites/path.py @@ -6,7 +6,7 @@ # By: charles <me@cacharle.xyz> +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2020/09/09 15:12:58 by charles #+# #+# # -# Updated: 2020/10/07 11:12:56 by cacharle ### ########.fr # +# Updated: 2020/10/07 15:16:49 by cacharle ### ########.fr # # # # ############################################################################ # @@ -65,7 +65,8 @@ def suite_path(test): test("a", setup=mode_fmt.format("6777"), exports={"PATH": "path"}) test("a", setup=mode_fmt.format("7777"), exports={"PATH": "path"}) test("a", setup=mode_fmt.format("0000"), exports={"PATH": "path"}) - test("b", setup="mkdir path && cp " + whoami_path + " ./path/a && ln -s ./path/a ./path/b", exports={"PATH": "path"}) + test("b", setup="mkdir path && cp " + whoami_path + " ./path/a && ln -s ./path/a ./path/b", + exports={"PATH": "path"}) test("b", setup="mkdir path && ln -s " + whoami_path + " ./path/b", exports={"PATH": "path"}) test("a", setup="mkdir path && mkfifo path/a") test("a", setup="mkdir path && mkfifo path/a && chmod 777 path/a") @@ -102,7 +103,7 @@ def suite_path_variable(test): test("whoami", exports={"PATH": "/usr/bin:/usr/bin:/usr/bin:/usr/bin"}) test("whoami", exports={"PATH": " /sbin "}) test("whoami", exports={"PATH": "/sbin:/sbin:/sbin:/sbin"}) - test("whoami", exports={"PATH": ""}) + test("whoami", exports={"PATH": ""}) # error message explicit enough test("whoami", exports={"PATH": ":"}) test("whoami", exports={"PATH": ":::::::::::::::::::"}) test("whoami", exports={"PATH": "/asdfasdf"}) |
