gremlin: 'elf-dynamic-info-needed' test is no longer skipped.
authorLudovic Courtès <ludo@gnu.org>
Tue, 21 Aug 2018 21:11:07 +0000 (23:11 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 21 Aug 2018 21:27:08 +0000 (23:27 +0200)
* 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

index 2885554..f1089e7 100644 (file)
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2015, 2018 Ludovic Courtès <ludo@gnu.org>
 ;;;
 ;;; 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))
     (_