diff options
Diffstat (limited to 'test/environment/output.exp')
-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" |