diff options
author | Reiner Herrmann <reiner@reiner-h.de> | 2020-08-14 11:12:49 +0200 |
---|---|---|
committer | Reiner Herrmann <reiner@reiner-h.de> | 2020-08-14 11:12:51 +0200 |
commit | 45480f36de7a5d0965912039d406534e2b80d4a0 (patch) | |
tree | 489d431dd853d804c8416e648449c80f3a66b2a1 /test/environment | |
parent | print errno if char device creation fails (diff) | |
download | firejail-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/environment')
-rwxr-xr-x | test/environment/rlimit-profile.exp | 2 | ||||
-rwxr-xr-x | test/environment/rlimit.exp | 4 | ||||
-rw-r--r-- | test/environment/rlimit.profile | 2 |
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 | } |
31 | expect { | 31 | expect { |
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 | } |
35 | expect { | 35 | expect { |
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 | |||
8 | spawn $env(SHELL) | 8 | spawn $env(SHELL) |
9 | match_max 100000 | 9 | match_max 100000 |
10 | 10 | ||
11 | send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200 --rlimit-as=123456789012\r" | 11 | send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200 --rlimit-as=1234567890\r" |
12 | expect { | 12 | expect { |
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 | } |
31 | expect { | 31 | expect { |
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 | } |
35 | expect { | 35 | expect { |
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 | |||
2 | rlimit-nproc 1000 | 2 | rlimit-nproc 1000 |
3 | rlimit-nofile 500 | 3 | rlimit-nofile 500 |
4 | rlimit-sigpending 200 | 4 | rlimit-sigpending 200 |
5 | rlimit-as 123456789012 | 5 | rlimit-as 1234567890 |