diff options
author | netblue30 <netblue30@yahoo.com> | 2017-03-03 12:29:47 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-03-03 12:29:47 -0500 |
commit | 97853040fb6af73c2f73a98d7e93dae0e20bfc57 (patch) | |
tree | 3872b29771e9689a76752c4640e31334a3eafa85 /test/environment | |
parent | xvfb X11 server support (--x11=xvfb) (diff) | |
download | firejail-97853040fb6af73c2f73a98d7e93dae0e20bfc57.tar.gz firejail-97853040fb6af73c2f73a98d7e93dae0e20bfc57.tar.zst firejail-97853040fb6af73c2f73a98d7e93dae0e20bfc57.zip |
testing
Diffstat (limited to 'test/environment')
-rwxr-xr-x | test/environment/output.exp | 22 |
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 | } |
62 | after 100 | 62 | after 100 |
63 | send -- "rm -f logfile*\r" | 63 | send -- "rm -f logfile*\r" |
64 | |||
65 | |||
66 | send -- "firejail --output=../logfile -- ./output.sh\r" | ||
67 | expect { | ||
68 | timeout {puts "TESTING ERROR 8\n";exit} | ||
69 | "invalid output file" | ||
70 | } | ||
71 | after 100 | ||
72 | |||
73 | send -- "firejail --output=/etc -- ./output.sh\r" | ||
74 | expect { | ||
75 | timeout {puts "TESTING ERROR 9\n";exit} | ||
76 | "invalid output file" | ||
77 | } | ||
78 | after 100 | ||
79 | |||
80 | send -- "firejail --output=/etc/firejail/zoom.profile -- ./output.sh\r" | ||
81 | expect { | ||
82 | timeout {puts "TESTING ERROR 10\n";exit} | ||
83 | "the output file needs to be owned by the current user" | ||
84 | } | ||
85 | |||
64 | after 100 | 86 | after 100 |
65 | puts "\nall done\n" | 87 | puts "\nall done\n" |