diff options
-rw-r--r-- | meta/recipes-core/glibc/glibc/check-test-wrapper | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc/check-test-wrapper b/meta/recipes-core/glibc/glibc/check-test-wrapper index f8e04e02d2..6ec9b9b29e 100644 --- a/meta/recipes-core/glibc/glibc/check-test-wrapper +++ b/meta/recipes-core/glibc/glibc/check-test-wrapper | |||
@@ -2,6 +2,7 @@ | |||
2 | import sys | 2 | import sys |
3 | import os | 3 | import os |
4 | import subprocess | 4 | import subprocess |
5 | import resource | ||
5 | 6 | ||
6 | env = os.environ.copy() | 7 | env = os.environ.copy() |
7 | args = sys.argv[1:] | 8 | args = sys.argv[1:] |
@@ -44,6 +45,14 @@ if targettype == "user": | |||
44 | qemuargs += ["-L", sysroot] | 45 | qemuargs += ["-L", sysroot] |
45 | qemuargs += ["-E", "LD_LIBRARY_PATH={}".format(":".join(libpaths))] | 46 | qemuargs += ["-E", "LD_LIBRARY_PATH={}".format(":".join(libpaths))] |
46 | command = qemuargs + args | 47 | command = qemuargs + args |
48 | |||
49 | # We've seen qemu-arm using up all system memory for some glibc | ||
50 | # tests e.g. nptl/tst-pthread-timedlock-lockloop | ||
51 | # Cap at 8GB since no test should need more than that | ||
52 | # (5GB adds 7 failures for qemuarm glibc test run) | ||
53 | limit = 8*1024*1024*1024 | ||
54 | resource.setrlimit(resource.RLIMIT_AS, (limit, limit)) | ||
55 | |||
47 | elif targettype == "ssh": | 56 | elif targettype == "ssh": |
48 | host = os.environ.get("SSH_HOST", None) | 57 | host = os.environ.get("SSH_HOST", None) |
49 | user = os.environ.get("SSH_HOST_USER", None) | 58 | user = os.environ.get("SSH_HOST_USER", None) |