aboutsummaryrefslogtreecommitdiff
path: root/tests/gremlin.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gremlin.scm')
-rw-r--r--tests/gremlin.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gremlin.scm b/tests/gremlin.scm
index 1b47d5c384..77a5dc1998 100644
--- a/tests/gremlin.scm
+++ b/tests/gremlin.scm
@@ -29,8 +29,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))
(_