aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-03-03 12:29:47 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2017-03-03 12:29:47 -0500
commit97853040fb6af73c2f73a98d7e93dae0e20bfc57 (patch)
tree3872b29771e9689a76752c4640e31334a3eafa85 /test/environment
parentxvfb X11 server support (--x11=xvfb) (diff)
downloadfirejail-97853040fb6af73c2f73a98d7e93dae0e20bfc57.tar.gz
firejail-97853040fb6af73c2f73a98d7e93dae0e20bfc57.tar.zst
firejail-97853040fb6af73c2f73a98d7e93dae0e20bfc57.zip
testing
Diffstat (limited to 'test/environment')
-rwxr-xr-xtest/environment/output.exp22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/environment/output.exp b/test/environment/output.exp
index 10c325832..d175ddae2 100755
--- a/test/environment/output.exp
+++ b/test/environment/output.exp
@@ -61,5 +61,27 @@ expect {
61} 61}
62after 100 62after 100
63send -- "rm -f logfile*\r" 63send -- "rm -f logfile*\r"
64
65
66send -- "firejail --output=../logfile -- ./output.sh\r"
67expect {
68 timeout {puts "TESTING ERROR 8\n";exit}
69 "invalid output file"
70}
71after 100
72
73send -- "firejail --output=/etc -- ./output.sh\r"
74expect {
75 timeout {puts "TESTING ERROR 9\n";exit}
76 "invalid output file"
77}
78after 100
79
80send -- "firejail --output=/etc/firejail/zoom.profile -- ./output.sh\r"
81expect {
82 timeout {puts "TESTING ERROR 10\n";exit}
83 "the output file needs to be owned by the current user"
84}
85
64after 100 86after 100
65puts "\nall done\n" 87puts "\nall done\n"