aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2020-08-14 11:12:49 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2020-08-14 11:12:51 +0200
commit45480f36de7a5d0965912039d406534e2b80d4a0 (patch)
tree489d431dd853d804c8416e648449c80f3a66b2a1 /test
parentprint errno if char device creation fails (diff)
downloadfirejail-45480f36de7a5d0965912039d406534e2b80d4a0.tar.gz
firejail-45480f36de7a5d0965912039d406534e2b80d4a0.tar.zst
firejail-45480f36de7a5d0965912039d406534e2b80d4a0.zip
tests: fix rlimit test for 32bit archs
On 32bit architectures like armhf, the output was "unlimited" instead of the expected value.
Diffstat (limited to 'test')
-rwxr-xr-xtest/environment/rlimit-profile.exp2
-rwxr-xr-xtest/environment/rlimit.exp4
-rw-r--r--test/environment/rlimit.profile2
3 files changed, 4 insertions, 4 deletions
diff --git a/test/environment/rlimit-profile.exp b/test/environment/rlimit-profile.exp
index 721e2196e..6dd7cb3b5 100755
--- a/test/environment/rlimit-profile.exp
+++ b/test/environment/rlimit-profile.exp
@@ -30,7 +30,7 @@ expect {
30} 30}
31expect { 31expect {
32 timeout {puts "TESTING ERROR 1.4\n";exit} 32 timeout {puts "TESTING ERROR 1.4\n";exit}
33 "Max address space 123456789012 123456789012" 33 "Max address space 1234567890 1234567890"
34} 34}
35expect { 35expect {
36 timeout {puts "TESTING ERROR 1.5\n";exit} 36 timeout {puts "TESTING ERROR 1.5\n";exit}
diff --git a/test/environment/rlimit.exp b/test/environment/rlimit.exp
index 757faf1f9..ed3f08e20 100755
--- a/test/environment/rlimit.exp
+++ b/test/environment/rlimit.exp
@@ -8,7 +8,7 @@ cd /home
8spawn $env(SHELL) 8spawn $env(SHELL)
9match_max 100000 9match_max 100000
10 10
11send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200 --rlimit-as=123456789012\r" 11send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200 --rlimit-as=1234567890\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized" 14 "Child process initialized"
@@ -30,7 +30,7 @@ expect {
30} 30}
31expect { 31expect {
32 timeout {puts "TESTING ERROR 1.4\n";exit} 32 timeout {puts "TESTING ERROR 1.4\n";exit}
33 "Max address space 123456789012 123456789012" 33 "Max address space 1234567890 1234567890"
34} 34}
35expect { 35expect {
36 timeout {puts "TESTING ERROR 1.5\n";exit} 36 timeout {puts "TESTING ERROR 1.5\n";exit}
diff --git a/test/environment/rlimit.profile b/test/environment/rlimit.profile
index a569edc6d..2f1134e6c 100644
--- a/test/environment/rlimit.profile
+++ b/test/environment/rlimit.profile
@@ -2,4 +2,4 @@ rlimit-fsize 1024
2rlimit-nproc 1000 2rlimit-nproc 1000
3rlimit-nofile 500 3rlimit-nofile 500
4rlimit-sigpending 200 4rlimit-sigpending 200
5rlimit-as 123456789012 5rlimit-as 1234567890