Subject: Re: bug#73441: 31.0.50; Unstable proced-refine-test failure

From: Michael Albinus <[email-masked]>
Date: Sat, 09 Nov 2024 09:31:54 +0100

Michael Albinus <[email-masked]> writes:

Hi Laurence,

Now we've got useful data:

--8<---------------cut here---------------start------------->8---
Test proced-refine-test condition:
    (ert-test-failed
     ((wrong-type-argument number-or-marker-p nil)
      (unexpected-refinement
       (header-line
	"  User EUID Group EGID   PID PPID  PGrp  Sess Pr  Ni %CPU %Mem Stat THCount   VSize    RSS TTY TPGID MinFlt MajFlt CMinFlt CMajFlt Start   Time UTime STime CTime CUTime CSTime ETime Args")
       (process
	"  root    0 root     0 73235 1467 73235 73235 20   0 -nan  0.0 Z          1     0 B    0 B        -1     71      0       0       0  06:10 00:00 00:00 00:00 00:00  00:00  00:00 00:00 [chown]\n")
       (refined-value 30.5) (process-value nil))))
   FAILED  3/6  proced-refine-test (0.188194 sec) at lisp/proced-tests.el:104
--8<---------------cut here---------------end--------------->8---

IIUC the problem is, that the %CPU column doesn't contain a number but
the value -nan.

I don't know whether this is a legal value. If yes, it must be supported
in proced--assert-process-valid-cpu-refinement. Otherwise, something in
proced.el must be fixed.

Best regards, Michael.