summaryrefslogtreecommitdiffstats
path: root/test/features/1.8.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 12:38:13 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 12:38:13 -0500
commit686bc51e38b0718651e82818871b0bf1451c8b21 (patch)
tree521f5fc2123c4782493fc86b46cc41533acb85db /test/features/1.8.exp
parent0.9.36 testing (diff)
downloadfirejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.gz
firejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.zst
firejail-686bc51e38b0718651e82818871b0bf1451c8b21.zip
0.9.36 testing
Diffstat (limited to 'test/features/1.8.exp')
-rwxr-xr-xtest/features/1.8.exp43
1 files changed, 23 insertions, 20 deletions
diff --git a/test/features/1.8.exp b/test/features/1.8.exp
index aefe9d8c5..293864671 100755
--- a/test/features/1.8.exp
+++ b/test/features/1.8.exp
@@ -6,6 +6,7 @@
6set timeout 10 6set timeout 10
7spawn $env(SHELL) 7spawn $env(SHELL)
8match_max 100000 8match_max 100000
9set overlay [lindex $argv 0]
9 10
10# 11#
11# N 12# N
@@ -37,27 +38,29 @@ sleep 1
37# 38#
38# O 39# O
39# 40#
40send -- "firejail --noprofile --overlay\r" 41if { $overlay == "overlay" } {
41expect { 42 send -- "firejail --noprofile --overlay\r"
42 timeout {puts "TESTING ERROR 2\n";exit} 43 expect {
43 "Child process initialized" 44 timeout {puts "TESTING ERROR 2\n";exit}
44} 45 "Child process initialized"
45sleep 1 46 }
46send -- "ls /etc/firejail\r" 47 sleep 1
47expect { 48 send -- "ls /etc/firejail\r"
48 timeout {puts "TESTING ERROR 3\n";exit} 49 expect {
49 "Permission denied" 50 timeout {puts "TESTING ERROR 3\n";exit}
50} 51 "Permission denied"
51after 100 52 }
52send -- "ls ~/.config/firejail\r" 53 after 100
53expect { 54 send -- "ls ~/.config/firejail\r"
54 timeout {puts "TESTING ERROR 3.1\n";exit} 55 expect {
55 "Permission denied" 56 timeout {puts "TESTING ERROR 3.1\n";exit}
57 "Permission denied"
58 }
59 after 100
60
61 send -- "exit\r"
62 sleep 1
56} 63}
57after 100
58
59send -- "exit\r"
60sleep 1
61 64
62# 65#
63# C 66# C