summary refs log tree commit diff
path: root/pkgs/development/compilers/factor-lang/adjust-paths-in-unit-tests.patch
blob: 068d7c09b686d896b027dc8d12da9f6c87b41d2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From da8a4b9c1094a568f443c525ca1ce11f686be1bc Mon Sep 17 00:00:00 2001
From: timor <timor.dd@googlemail.com>
Date: Thu, 8 Aug 2019 14:13:09 +0200
Subject: [PATCH] adjust unit test for finding executables in path for NixOS

---
 basis/io/standard-paths/unix/unix-tests.factor | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/basis/io/standard-paths/unix/unix-tests.factor b/basis/io/standard-paths/unix/unix-tests.factor
index 986c0564d2..f0772fdcc9 100644
--- a/basis/io/standard-paths/unix/unix-tests.factor
+++ b/basis/io/standard-paths/unix/unix-tests.factor
@@ -5,12 +5,12 @@ sequences tools.test ;
 
 { f } [ "" find-in-path ] unit-test
 { t } [
-    "ls" find-in-path { "/bin/ls" "/usr/bin/ls" } member?
+    "ls" find-in-path not not
 ] unit-test
 
 { t } [
     "/sbin:" "PATH" os-env append "PATH" [
         "ps" find-in-path
-        { "/bin/ps" "/sbin/ps" "/usr/bin/ps" } member?
+        not not
     ] with-os-env
 ] unit-test
-- 
2.19.2