mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 06:06:53 -05:00
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:
parent
bd2337228d
commit
a1a8b7f2e2
1 changed files with 2 additions and 1 deletions
|
@ -447,7 +447,8 @@ (define perform-container-tests?
|
||||||
(every (lambda (entry)
|
(every (lambda (entry)
|
||||||
(match (utmpx-user entry)
|
(match (utmpx-user entry)
|
||||||
((? string?)
|
((? string?)
|
||||||
(> (utmpx-pid entry) 0))
|
(or (eqv? (login-type BOOT_TIME) (utmpx-login-type entry))
|
||||||
|
(> (utmpx-pid entry) 0)))
|
||||||
(#f ;might be DEAD_PROCESS
|
(#f ;might be DEAD_PROCESS
|
||||||
#t)))
|
#t)))
|
||||||
entries))))
|
entries))))
|
||||||
|
|
Loading…
Reference in a new issue