mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
4f5daac94e
Fixes #136400
32 lines
976 B
Diff
32 lines
976 B
Diff
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
|
|
|