summaryrefslogtreecommitdiffstats
path: root/tests/018
diff options
context:
space:
mode:
Diffstat (limited to 'tests/018')
-rw-r--r--tests/018/path-test.tl5
-rw-r--r--tests/018/process.tl3
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/018/path-test.tl b/tests/018/path-test.tl
index 75a8d2d3..919186ac 100644
--- a/tests/018/path-test.tl
+++ b/tests/018/path-test.tl
@@ -1,7 +1,10 @@
(load "../common")
+(unless (path-executable-to-me-p "/bin/sh")
+ (exit 0))
+
(mtest
- (ends-with "/sh" (path-search "sh")) t
+ (ends-with "/bin/sh" (path-search "sh")) t
(path-search "AlMoStCeRtAiNlLyNoNeXisTenT") nil
(path-search "") nil
(path-search "sh" nil) nil
diff --git a/tests/018/process.tl b/tests/018/process.tl
index 1b3780ac..07ecfb64 100644
--- a/tests/018/process.tl
+++ b/tests/018/process.tl
@@ -1,5 +1,8 @@
(load "../common")
+(unless (path-executable-to-me-p "/bin/sh")
+ (exit 0))
+
(defun cmd (c : (m "r"))
(with-stream (s (open-command c m))
(get-string s)))