aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/1.4.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 16:42:58 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 16:42:58 -0500
commitdda687ed2a748cb262b317e0c7fdf4a9c4ae2d31 (patch)
tree144fba235fec87d74deff110aaa71891174b3eef /test/features/1.4.exp
parent0.9.36 testing (diff)
downloadfirejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.tar.gz
firejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.tar.zst
firejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.zip
0.9.36 testing
Diffstat (limited to 'test/features/1.4.exp')
-rwxr-xr-xtest/features/1.4.exp54
1 files changed, 28 insertions, 26 deletions
diff --git a/test/features/1.4.exp b/test/features/1.4.exp
index 113a328c9..6de8b614f 100755
--- a/test/features/1.4.exp
+++ b/test/features/1.4.exp
@@ -77,33 +77,35 @@ if { $overlay == "overlay" } {
77# 77#
78# C 78# C
79# 79#
80send -- "firejail --noprofile --chroot=/tmp/chroot\r" 80if { $chroot == "chroot" } {
81expect { 81 send -- "firejail --noprofile --chroot=/tmp/chroot\r"
82 timeout {puts "TESTING ERROR 4\n";exit} 82 expect {
83 "Child process initialized" 83 timeout {puts "TESTING ERROR 4\n";exit}
84} 84 "Child process initialized"
85sleep 1 85 }
86 86 sleep 1
87send -- "ls -l /home | wc -l\r" 87
88expect { 88 send -- "ls -l /home | wc -l\r"
89 timeout {puts "TESTING ERROR 5\n";exit} 89 expect {
90 "2" 90 timeout {puts "TESTING ERROR 5\n";exit}
91} 91 "2"
92after 100 92 }
93send -- "cat /etc/passwd | grep 1001 | wc -l\r" 93 after 100
94expect { 94 send -- "cat /etc/passwd | grep 1001 | wc -l\r"
95 timeout {puts "TESTING ERROR 5.1\n";exit} 95 expect {
96 "0" 96 timeout {puts "TESTING ERROR 5.1\n";exit}
97} 97 "0"
98after 100 98 }
99send -- "cat /etc/group | grep 1001 | wc -l\r" 99 after 100
100expect { 100 send -- "cat /etc/group | grep 1001 | wc -l\r"
101 timeout {puts "TESTING ERROR 5.2\n";exit} 101 expect {
102 "0" 102 timeout {puts "TESTING ERROR 5.2\n";exit}
103 "0"
104 }
105 after 100
106 send -- "exit\r"
107 sleep 1
103} 108}
104after 100
105send -- "exit\r"
106sleep 1
107 109
108 110
109puts "\nall done\n" 111puts "\nall done\n"