tests: Make ‘tests/print.scm’ deterministic.

The “package with inputs” test would fail non-deterministically:
sometimes ‘package->code’ would pick the ‘glibc’ symbol, sometimes it
would take ‘glibc/hurd’, which is an alias for ‘glibc’.

* tests/print.scm (pkg-with-inputs)[inputs]: Replace ‘glibc’ with
‘gnu-make’.

Change-Id: Ie192adda98d66546fae820a6bcdd5bb4b9f4dae7
This commit is contained in:
Ludovic Courtès 2024-09-25 23:10:26 +02:00
parent bd59254b82
commit b5303183ef
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -61,8 +61,13 @@ (define-with-source pkg-with-inputs pkg-with-inputs-source
(base32
"070pwb7brdcn1mfvplkd56vjc7lbz4iznzkqvfsakvgbv68k71ah"))))
(build-system (@ (guix build-system gnu) gnu-build-system))
;; Note: For this test, pick variables that do not have aliases; otherwise
;; 'package->code' might pick one of the other variable names in a
;; non-deterministic fashion.
(inputs (list (@ (gnu packages base) coreutils)
`(,(@ (gnu packages base) glibc) "debug")))
`(,(@ (gnu packages base) gnu-make) "debug")))
(home-page "http://gnu.org")
(synopsis "Dummy")
(description "This is a dummy package.")