From d0664e2db83ce2c4815dcdb6f84d957a9a880673 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 30 Oct 2017 08:42:01 -0400 Subject: testing --- test/fs/private-lib.exp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'test/fs/private-lib.exp') diff --git a/test/fs/private-lib.exp b/test/fs/private-lib.exp index fd127bdb3..20d480062 100755 --- a/test/fs/private-lib.exp +++ b/test/fs/private-lib.exp @@ -3,27 +3,30 @@ # Copyright (C) 2014-2017 Firejail Authors # License GPL v2 + set timeout 10 spawn $env(SHELL) match_max 100000 -send -- "firejail --private-lib --private-bin=sh,bash,dash,ps,grep,ls,find,echo \r" +send -- "firejail --private-lib --private-bin=sh,bash,dash,ps,grep,ls,find,echo,stty \r" expect { timeout {puts "TESTING ERROR 1\n";exit} "Child process initialized" } after 100 +send -- "stty -echo\r" -send -- "cd /bin; find .; echo done\r" +send -- "cd /bin; find .\; echo done\r" expect { timeout {puts "TESTING ERROR 2\n";exit} +# "grep" {puts "TESTING ERROR 3\n";exit} "rm" {puts "TESTING ERROR 3\n";exit} "cp" {puts "TESTING ERROR 4\n";exit} "done" } after 100 -send -- "cd /lib; find .; echo done\r" +send -- "cd /lib; find .\r" expect { timeout {puts "TESTING ERROR 5\n";exit} "modules" {puts "TESTING ERROR 6\n";exit} @@ -32,7 +35,7 @@ expect { } after 100 -send -- "cd /usr/lib; find .; echo done\r" +send -- "cd /usr/lib; find .\r" expect { timeout {puts "TESTING ERROR 8\n";exit} "grub" {puts "TESTING ERROR 9\n";exit} -- cgit v1.2.3-70-g09d2