Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.05 31 lines 976 B view raw
1From da8a4b9c1094a568f443c525ca1ce11f686be1bc Mon Sep 17 00:00:00 2001 2From: timor <timor.dd@googlemail.com> 3Date: Thu, 8 Aug 2019 14:13:09 +0200 4Subject: [PATCH] adjust unit test for finding executables in path for NixOS 5 6--- 7 basis/io/standard-paths/unix/unix-tests.factor | 4 ++-- 8 1 file changed, 2 insertions(+), 2 deletions(-) 9 10diff --git a/basis/io/standard-paths/unix/unix-tests.factor b/basis/io/standard-paths/unix/unix-tests.factor 11index 986c0564d2..f0772fdcc9 100644 12--- a/basis/io/standard-paths/unix/unix-tests.factor 13+++ b/basis/io/standard-paths/unix/unix-tests.factor 14@@ -5,12 +5,12 @@ sequences tools.test ; 15 16 { f } [ "" find-in-path ] unit-test 17 { t } [ 18- "ls" find-in-path { "/bin/ls" "/usr/bin/ls" } member? 19+ "ls" find-in-path not not 20 ] unit-test 21 22 { t } [ 23 "/sbin:" "PATH" os-env append "PATH" [ 24 "ps" find-in-path 25- { "/bin/ps" "/sbin/ps" "/usr/bin/ps" } member? 26+ not not 27 ] with-os-env 28 ] unit-test 29-- 302.19.2 31