From 0cf5d76836a6499de4e30c4066d8709099ff6331 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 7 Oct 2020 18:58:12 +0200 Subject: Added memory leak checking --- src/suites/path.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/suites') 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 +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # 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"}) -- cgit