]> granicus.if.org Git - procps-ng/commitdiff
tests: Fix type for check_fatal_proc_unmounted
authorCraig Small <csmall@dropbear.xyz>
Tue, 6 Dec 2022 11:23:08 +0000 (22:23 +1100)
committerCraig Small <csmall@dropbear.xyz>
Tue, 6 Dec 2022 11:23:08 +0000 (22:23 +1100)
While ps used the correct type for PIDS_VM_RSS the test
did not. For some reason this only appeared to be an issue
for s390x

References:
 https://bugs.debian.org/1025495

Signed-off-by: Craig Small <csmall@dropbear.xyz>
library/tests/test_pids.c

index 0a9832b5fe01ddd07ecbe44ba09f1470b45c6c9d..eda0b73a6e7ba80e15c3709438aab729b4257c7b 100644 (file)
@@ -57,7 +57,7 @@ int check_fatal_proc_unmounted(void *data)
     return ( (procps_pids_new(&info, items2, 2) == 0) &&
            ( (stack = fatal_proc_unmounted(info, 1)) != NULL) &&
            ( PIDS_VAL(0, s_int, stack, info) > 0) &&
-           ( PIDS_VAL(1, u_int, stack, info) > 0));
+           ( PIDS_VAL(1, ul_int, stack, info) > 0));
 }
 
 TestFunction test_funcs[] = {