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