tests: Relax test on utmpx entries.

Partly fixes <http://bugs.gnu.org/25476>.
Reported by Paul Garlick <pgarlick@tourbillion-technology.com>.

* tests/syscalls.scm ("utmpx-entries"): Check whether ENTRY is of type
'BOOT_TIME', in which case PID may be 0.
This commit is contained in:
Ludovic Courtès 2017-02-11 22:26:36 +01:00
parent bd2337228d
commit a1a8b7f2e2
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -447,7 +447,8 @@ (define perform-container-tests?
(every (lambda (entry)
(match (utmpx-user entry)
((? string?)
(> (utmpx-pid entry) 0))
(or (eqv? (login-type BOOT_TIME) (utmpx-login-type entry))
(> (utmpx-pid entry) 0)))
(#f ;might be DEAD_PROCESS
#t)))
entries))))