]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD regtest: getrlimitusage on arm64
authorPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 7 Mar 2025 06:00:26 +0000 (07:00 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 7 Mar 2025 06:03:11 +0000 (07:03 +0100)
Resident memory isn't stable even when truncated to a
multiple of ten milllion. I.e., zero digits of useful precision.
So just set this field to zero like the other flaky values.

memcheck/tests/freebsd/getrlimitusage.c
memcheck/tests/freebsd/getrlimitusage.stderr.exp

index b601dfdb585392c40308669d543963015640048a..5b73479012f2ba2b365ccdd51b17fe549ebec34c 100644 (file)
@@ -82,9 +82,11 @@ int main(int argc, char *argv[])
             }
         }
         // add some rounding to try to make regtest stable
+        // most of these change all the time
         switch (i)
         {
         case 7:
+        case 5:
         case 9:
         case 11:
         case 12:
@@ -93,9 +95,6 @@ int main(int argc, char *argv[])
         case 15:
             res = 0U;
             break;
-        case 5:
-            res = res/10000000 * 10000000;
-            break;
         case 10:
             res = res/100000000 * 100000000;
             break;
index a5b5f33bb2e921a2cd3a302af7fa3050955b0345..1923e27ce6f952ac2cc7b2688d24936c35407abc 100644 (file)
@@ -3,7 +3,7 @@ fsize (1):      -1
 data (2):      4096
 stack (3):     16777216
 core (4):      -1
-rss (5):       40000000
+rss (5):       0
 memlock (6):   0
 nproc (7):     0
 nofile (8):    3