[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/23: tests: gremlin: Skip file-needed/recursive if DT_NEEDED is empty.
From: |
guix-commits |
Subject: |
18/23: tests: gremlin: Skip file-needed/recursive if DT_NEEDED is empty. |
Date: |
Thu, 11 Mar 2021 02:05:06 -0500 (EST) |
marusich pushed a commit to branch wip-ppc64le
in repository guix.
commit 78faf0f608a62b893139d46c17d5f822c315cbc5
Author: Chris Marusich <cmmarusich@gmail.com>
AuthorDate: Wed Feb 24 00:02:30 2021 -0800
tests: gremlin: Skip file-needed/recursive if DT_NEEDED is empty.
* tests/gremlin.scm (file-needed/recursive): Skip the test when
(file-runpath
%guile-executable) evaluates to the empty list. This fixes the test, which
previously failed incorrectly in the case where Guix has been built using a
foreign distro's toolchain and libraries.
---
tests/gremlin.scm | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/gremlin.scm b/tests/gremlin.scm
index 9ddac14..79abdaf 100644
--- a/tests/gremlin.scm
+++ b/tests/gremlin.scm
@@ -61,7 +61,11 @@
(elf-dynamic-info-needed dyninfo))))))
(unless (and %guile-executable (not (getenv "LD_LIBRARY_PATH"))
- (file-needed %guile-executable)) ;statically linked?
+ (file-needed %guile-executable) ;statically linked?
+ ;; When Guix has been built on a foreign distro, using a
+ ;; toolchain and libraries from that foreign distro, it is not
+ ;; unusual for the runpath to be empty.
+ (pair? (file-runpath %guile-executable)))
(test-skip 1))
(test-assert "file-needed/recursive"
(let* ((needed (file-needed/recursive %guile-executable))
- 07/23: gnu: glibc: Fix ldd path on powerpc*., (continued)
- 07/23: gnu: glibc: Fix ldd path on powerpc*., guix-commits, 2021/03/11
- 05/23: gnu: binutils-final: Support more Power architectures., guix-commits, 2021/03/11
- 04/23: gnu: binutils-final: Provide bash for binary on powerpc-linux., guix-commits, 2021/03/11
- 11/23: gnu: texlive-latex-base: Fix compilation on powerpc64le*., guix-commits, 2021/03/11
- 19/23: tests: pack: Fix %gzip-compressor and a failing test., guix-commits, 2021/03/11
- 16/23: ci: %cross-targets: Add powerpc64le-linux-gnu., guix-commits, 2021/03/11
- 23/23: tests: guix-environment.sh: Use C_INCLUDE_PATH, not CPATH., guix-commits, 2021/03/11
- 17/23: utils: Fix target-64bit? on powerpc64le-linux., guix-commits, 2021/03/11
- 21/23: gnu: gcc: Set gcc-8 as default., guix-commits, 2021/03/11
- 13/23: Add powerpc64le-linux as a supported Guix architecture., guix-commits, 2021/03/11
- 18/23: tests: gremlin: Skip file-needed/recursive if DT_NEEDED is empty.,
guix-commits <=
- 15/23: syscalls: Fix RNDADDTOENTCNT on powerpc64le-linux., guix-commits, 2021/03/11
- 22/23: gnu: openjpeg: Disable failing tests group., guix-commits, 2021/03/11
- 20/23: gnu: commencement: Fix findutils-boot0 on some systems., guix-commits, 2021/03/11
- 08/23: gnu: bdb-4.8: Fix configure on powerpc64le-linux., guix-commits, 2021/03/11