From 40d8e64830b1bea60700f6faf25b254898e3ab77 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 1 Nov 2020 08:34:06 -0500 Subject: potential fix for #3690 --- test/fs/mkdir.exp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/fs/mkdir.exp b/test/fs/mkdir.exp index 59005e1a2..966f2d29a 100755 --- a/test/fs/mkdir.exp +++ b/test/fs/mkdir.exp @@ -7,11 +7,12 @@ set timeout 3 spawn $env(SHELL) match_max 100000 +send -- "rm -fr ~/.firejail_test\r" +after 100 + send -- "firejail --profile=mkdir.profile find ~/.firejail_test\r" expect { timeout {puts "TESTING ERROR 1.1\n";exit} - "Warning: cannot create" { puts "TESTING ERROR 1.2\n";exit} - "No such file or directory" { puts "TESTING ERROR 1.3\n";exit} ".firejail_test/a/b/c/d.txt" } send -- "rm -rf ~/.firejail_test\r" @@ -20,8 +21,6 @@ after 100 send -- "firejail --profile=mkdir.profile find /tmp/.firejail_test\r" expect { timeout {puts "TESTING ERROR 2.1\n";exit} - "Warning: cannot create" { puts "TESTING ERROR 2.2\n";exit} - "No such file or directory" { puts "TESTING ERROR 2.3\n";exit} "/tmp/.firejail_test/a/b/c/d.txt" } send -- "rm -rf /tmp/.firejail_test\r" @@ -31,8 +30,6 @@ set UID [exec id -u] send -- "firejail --profile=mkdir.profile find /run/user/$UID/.firejail_test\r" expect { timeout {puts "TESTING ERROR 3.1\n";exit} - "Warning: cannot create" { puts "TESTING ERROR 3.2\n";exit} - "No such file or directory" { puts "TESTING ERROR 3.3\n";exit} "/run/user/$UID/.firejail_test/a/b/c/d.txt" } send -- "rm -rf /run/user/$UID/.firejail_test\r" -- cgit v1.2.3-54-g00ecf