From 45480f36de7a5d0965912039d406534e2b80d4a0 Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Fri, 14 Aug 2020 11:12:49 +0200 Subject: tests: fix rlimit test for 32bit archs On 32bit architectures like armhf, the output was "unlimited" instead of the expected value. --- test/environment/rlimit-profile.exp | 2 +- test/environment/rlimit.exp | 4 ++-- 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 { } expect { timeout {puts "TESTING ERROR 1.4\n";exit} - "Max address space 123456789012 123456789012" + "Max address space 1234567890 1234567890" } expect { 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 spawn $env(SHELL) match_max 100000 -send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200 --rlimit-as=123456789012\r" +send -- "firejail --rlimit-fsize=1024 --rlimit-nproc=1000 --rlimit-nofile=500 --rlimit-sigpending=200 --rlimit-as=1234567890\r" expect { timeout {puts "TESTING ERROR 0\n";exit} "Child process initialized" @@ -30,7 +30,7 @@ expect { } expect { timeout {puts "TESTING ERROR 1.4\n";exit} - "Max address space 123456789012 123456789012" + "Max address space 1234567890 1234567890" } expect { 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 rlimit-nproc 1000 rlimit-nofile 500 rlimit-sigpending 200 -rlimit-as 123456789012 +rlimit-as 1234567890 -- cgit v1.2.3-54-g00ecf