~ruther/guix-local

a1a8b7f2e20513a3ad968e74e7ec52546404e3c6 — Ludovic Courtès 9 years ago bd23372
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.
1 files changed, 2 insertions(+), 1 deletions(-)

M tests/syscalls.scm
M tests/syscalls.scm => tests/syscalls.scm +2 -1
@@ 447,7 447,8 @@
     (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))))