diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-09-25 23:10:26 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-09-28 00:20:18 +0200 |
commit | b5303183ef865a243f7746a7c19c1a98ad0fa242 (patch) | |
tree | 9c691dced5603590d57a94be114557740e35458b /tests/print.scm | |
parent | bd59254b829396d050919065a879357fd0e994c7 (diff) | |
download | guix-b5303183ef865a243f7746a7c19c1a98ad0fa242.tar.gz guix-b5303183ef865a243f7746a7c19c1a98ad0fa242.zip |
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
Diffstat (limited to 'tests/print.scm')
-rw-r--r-- | tests/print.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/print.scm b/tests/print.scm index b4f193b905..f068d380b7 100644 --- a/tests/print.scm +++ b/tests/print.scm @@ -61,8 +61,13 @@ (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.") |