|
|
9142b8 |
From a476b4c86dc8f916f9de6ab27857818dfd1f1781 Mon Sep 17 00:00:00 2001
|
|
|
9142b8 |
From: Eugene Syromyatnikov <evgsyr@gmail.com>
|
|
|
9142b8 |
Date: Wed, 21 Jul 2021 10:06:57 +0200
|
|
|
9142b8 |
Subject: [PATCH] tests: relax -a check in prlimit64 test
|
|
|
9142b8 |
|
|
|
9142b8 |
The initial "-a48" check was too strict as it has hit some false
|
|
|
9142b8 |
positives on 32-bit arches:
|
|
|
9142b8 |
|
|
|
9142b8 |
-prlimit64(15083, RLIMIT_AS, NULL, 0xf7ff4ff0) = -1 ENOSYS (Function not implemented)
|
|
|
9142b8 |
+prlimit64(15083, RLIMIT_AS, NULL, 0xf7ff4ff0) = -1 ENOSYS (Function not implemented)l
|
|
|
9142b8 |
|
|
|
9142b8 |
Reduce it to the theoretical limit (width of "prlimit(0, RLIMIT_AS, NULL, NULL)"
|
|
|
9142b8 |
string). Also, add the same check to prlimit64--pidns-translation.
|
|
|
9142b8 |
|
|
|
9142b8 |
* tests/gen_tests.in (prlimit64, prlimit64--pidns-translation): Set
|
|
|
9142b8 |
alignment check to -a28.
|
|
|
9142b8 |
---
|
|
|
9142b8 |
tests/gen_tests.in | 4 ++--
|
|
|
9142b8 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
9142b8 |
|
|
|
9142b8 |
diff --git a/tests/gen_tests.in b/tests/gen_tests.in
|
|
|
9142b8 |
index 8b4e2e9..e03d421 100644
|
|
|
9142b8 |
--- a/tests/gen_tests.in
|
|
|
9142b8 |
+++ b/tests/gen_tests.in
|
|
|
9142b8 |
@@ -599,8 +599,8 @@ printstr -e trace=writev
|
|
|
9142b8 |
printstrn-umoven -s4096 -e signal=none -e trace=add_key
|
|
|
9142b8 |
printstrn-umoven-peekdata -e signal=none -e trace=add_key
|
|
|
9142b8 |
printstrn-umoven-undumpable -e signal=none -e trace=add_key
|
|
|
9142b8 |
-prlimit64 -a48 "QUIRK:START-OF-TEST-OUTPUT:prlimit64(0, 0x10 /* RLIMIT_??? */, NULL, NULL)"
|
|
|
9142b8 |
-prlimit64--pidns-translation test_pidns -e trace=prlimit64 "QUIRK:START-OF-TEST-OUTPUT:prlimit64(0, 0x10 /* RLIMIT_??? */, NULL, NULL)"
|
|
|
9142b8 |
+prlimit64 -a28 "QUIRK:START-OF-TEST-OUTPUT:prlimit64(0, 0x10 /* RLIMIT_??? */, NULL, NULL)"
|
|
|
9142b8 |
+prlimit64--pidns-translation test_pidns -a28 -e trace=prlimit64 "QUIRK:START-OF-TEST-OUTPUT:prlimit64(0, 0x10 /* RLIMIT_??? */, NULL, NULL)"
|
|
|
9142b8 |
process_madvise
|
|
|
9142b8 |
process_madvise-y --trace=process_madvise -y
|
|
|
9142b8 |
process_madvise-yy --trace=process_madvise -yy
|
|
|
9142b8 |
--
|
|
|
9142b8 |
2.1.4
|
|
|
9142b8 |
|