aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment/rlimit-bad-profile.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-19 09:49:09 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-19 09:49:09 -0500
commitd30ae468d925199359aa7c6d4cdec7e9e15587dd (patch)
tree0d90762b6f55ca8bad2b923d4682f8a337a32600 /test/environment/rlimit-bad-profile.exp
parenttesting (diff)
downloadfirejail-d30ae468d925199359aa7c6d4cdec7e9e15587dd.tar.gz
firejail-d30ae468d925199359aa7c6d4cdec7e9e15587dd.tar.zst
firejail-d30ae468d925199359aa7c6d4cdec7e9e15587dd.zip
testing
Diffstat (limited to 'test/environment/rlimit-bad-profile.exp')
-rwxr-xr-xtest/environment/rlimit-bad-profile.exp35
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
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7
8send -- "firejail --profile=rlimit-bad1.profile\r"
9expect {
10 timeout {puts "TESTING ERROR 4\n";exit}
11 "Invalid rlimit option"
12}
13after 100
14
15send -- "firejail --profile=rlimit-bad2.profile\r"
16expect {
17 timeout {puts "TESTING ERROR 5\n";exit}
18 "Invalid rlimit option"
19}
20after 100
21
22send -- "firejail --profile=rlimit-bad3.profile\r"
23expect {
24 timeout {puts "TESTING ERROR 6\n";exit}
25 "Invalid rlimit option"
26}
27after 100
28send -- "firejail --profile=rlimit-bad4.profile\r"
29expect {
30 timeout {puts "TESTING ERROR 7\n";exit}
31 "Invalid rlimit option"
32}
33after 100
34
35puts "\nall done\n"