[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/05: gremlin: 'elf-dynamic-info-needed' test is no longer skipped.
From: |
Ludovic Courtès |
Subject: |
03/05: gremlin: 'elf-dynamic-info-needed' test is no longer skipped. |
Date: |
Tue, 21 Aug 2018 17:30:00 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit f7dfda2c73a0c4f09b105cafb29c45cf594e4ba9
Author: Ludovic Courtès <address@hidden>
Date: Tue Aug 21 23:11:07 2018 +0200
gremlin: 'elf-dynamic-info-needed' test is no longer skipped.
* tests/gremlin.scm (%guile-executable): Use /proc/self/exe instead
of (command-line). For a while now, the first element of (command-line)
was "./build-aux/test-driver.scm"; consequently the test was always
skipped.
---
tests/gremlin.scm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/gremlin.scm b/tests/gremlin.scm
index 2885554..f1089e7 100644
--- a/tests/gremlin.scm
+++ b/tests/gremlin.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2015 Ludovic Courtès <address@hidden>
+;;; Copyright © 2015, 2018 Ludovic Courtès <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -27,8 +27,8 @@
#:use-module (ice-9 match))
(define %guile-executable
- (match (command-line)
- ((program . _)
+ (match (false-if-exception (readlink "/proc/self/exe"))
+ ((? string? program)
(and (file-exists? program) (elf-file? program)
program))
(_