From 04043a1ee47fc9e4e99818c5752f961f2df74ab4 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sun, 4 Jul 2021 03:16:54 -0700 Subject: path-search: fix test for sh not being in /bin. * tests/018/path-test.tl: Check that the result of a path-search for "sh" only ends in "/bin/sh", not that it is precisely "/bin/sh". --- tests/018/path-test.tl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/018/path-test.tl b/tests/018/path-test.tl index 2b4e1717..0fbc5115 100644 --- a/tests/018/path-test.tl +++ b/tests/018/path-test.tl @@ -1,7 +1,7 @@ (load "../common") (mtest - (path-search "sh") "/bin/sh" + (ends-with "/bin/sh" (path-search "sh")) t (path-search "AlMoStCeRtAiNlLyNoNeXisTenT") nil (path-search "") nil (path-search "sh" nil) nil -- cgit v1.2.3