aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@yandex.com>2017-10-15 09:00:31 -0400
committerLibravatar startx2017 <vradu.startx@yandex.com>2017-10-15 09:00:31 -0400
commit5ee09312da788ebd91184c2be0591da32fbf8e41 (patch)
treefa866fc47933f83456a0b871df6b16c2efc75445 /test
parentglobbing - manpage (diff)
downloadfirejail-5ee09312da788ebd91184c2be0591da32fbf8e41.tar.gz
firejail-5ee09312da788ebd91184c2be0591da32fbf8e41.tar.zst
firejail-5ee09312da788ebd91184c2be0591da32fbf8e41.zip
merge --rlimit-as
Diffstat (limited to 'test')
-rwxr-xr-xtest/environment/rlimit-profile.exp4
-rwxr-xr-xtest/environment/rlimit.exp8
-rw-r--r--test/environment/rlimit.profile1
3 files changed, 11 insertions, 2 deletions
diff --git a/test/environment/rlimit-profile.exp b/test/environment/rlimit-profile.exp
index a9e54a405..43d6a3ee0 100755
--- a/test/environment/rlimit-profile.exp
+++ b/test/environment/rlimit-profile.exp
@@ -27,6 +27,10 @@ expect {
27} 27}
28expect { 28expect {
29 timeout {puts "TESTING ERROR 1.4\n";exit} 29 timeout {puts "TESTING ERROR 1.4\n";exit}
30 "Max address space 123456789012 123456789012"
31}
32expect {
33 timeout {puts "TESTING ERROR 1.5\n";exit}
30 "Max pending signals 200 200" 34 "Max pending signals 200 200"
31} 35}
32after 100 36after 100
diff --git a/test/environment/rlimit.exp b/test/environment/rlimit.exp
index ecbe2a3b7..38cdc3eea 100755
--- a/test/environment/rlimit.exp
+++ b/test/environment/rlimit.exp
@@ -5,7 +5,7 @@ cd /home
5spawn $env(SHELL) 5spawn $env(SHELL)
6match_max 100000 6match_max 100000
7 7
8send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200\r" 8send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200 --rlimit-as=123456789012\r"
9expect { 9expect {
10 timeout {puts "TESTING ERROR 0\n";exit} 10 timeout {puts "TESTING ERROR 0\n";exit}
11 "Child process initialized" 11 "Child process initialized"
@@ -27,10 +27,14 @@ expect {
27} 27}
28expect { 28expect {
29 timeout {puts "TESTING ERROR 1.4\n";exit} 29 timeout {puts "TESTING ERROR 1.4\n";exit}
30 "Max pending signals 200 200" 30 "Max address space 123456789012 123456789012"
31} 31}
32expect { 32expect {
33 timeout {puts "TESTING ERROR 1.5\n";exit} 33 timeout {puts "TESTING ERROR 1.5\n";exit}
34 "Max pending signals 200 200"
35}
36expect {
37 timeout {puts "TESTING ERROR 1.6\n";exit}
34 "home" 38 "home"
35} 39}
36after 100 40after 100
diff --git a/test/environment/rlimit.profile b/test/environment/rlimit.profile
index 88fc9ff31..a57471604 100644
--- a/test/environment/rlimit.profile
+++ b/test/environment/rlimit.profile
@@ -2,3 +2,4 @@
2rlimit-nproc 1000 2rlimit-nproc 1000
3 rlimit-nofile 500 3 rlimit-nofile 500
4rlimit-sigpending 200 4rlimit-sigpending 200
5rlimit-as 123456789012