diff options
author | netblue30 <netblue30@yahoo.com> | 2016-11-19 09:49:09 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-11-19 09:49:09 -0500 |
commit | d30ae468d925199359aa7c6d4cdec7e9e15587dd (patch) | |
tree | 0d90762b6f55ca8bad2b923d4682f8a337a32600 /test/environment/rlimit-bad-profile.exp | |
parent | testing (diff) | |
download | firejail-d30ae468d925199359aa7c6d4cdec7e9e15587dd.tar.gz firejail-d30ae468d925199359aa7c6d4cdec7e9e15587dd.tar.zst firejail-d30ae468d925199359aa7c6d4cdec7e9e15587dd.zip |
testing
Diffstat (limited to 'test/environment/rlimit-bad-profile.exp')
-rwxr-xr-x | test/environment/rlimit-bad-profile.exp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/environment/rlimit-bad-profile.exp b/test/environment/rlimit-bad-profile.exp new file mode 100755 index 000000000..80693a4a0 --- /dev/null +++ b/test/environment/rlimit-bad-profile.exp | |||
@@ -0,0 +1,35 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | |||
8 | send -- "firejail --profile=rlimit-bad1.profile\r" | ||
9 | expect { | ||
10 | timeout {puts "TESTING ERROR 4\n";exit} | ||
11 | "Invalid rlimit option" | ||
12 | } | ||
13 | after 100 | ||
14 | |||
15 | send -- "firejail --profile=rlimit-bad2.profile\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 5\n";exit} | ||
18 | "Invalid rlimit option" | ||
19 | } | ||
20 | after 100 | ||
21 | |||
22 | send -- "firejail --profile=rlimit-bad3.profile\r" | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 6\n";exit} | ||
25 | "Invalid rlimit option" | ||
26 | } | ||
27 | after 100 | ||
28 | send -- "firejail --profile=rlimit-bad4.profile\r" | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 7\n";exit} | ||
31 | "Invalid rlimit option" | ||
32 | } | ||
33 | after 100 | ||
34 | |||
35 | puts "\nall done\n" | ||