io.standard-paths.unix: Fix ifconfig test.

db4
Doug Coleman 2014-04-21 23:17:44 -07:00
parent 4d7ace5531
commit 876b430ec9
1 changed files with 5 additions and 4 deletions

View File

@ -8,7 +8,8 @@ IN: io.standard-paths.unix.tests
{ t } [
"ls" find-in-path { "/bin/ls" "/usr/bin/ls" } member?
] unit-test
{ t } [
"ifconfig" find-in-path
{ "/sbin/ifconfig" "/usr/bin/ifconfig" } member?
] unit-test
! On Ubuntu, the path is ``/sbin/ifconfig``, however
! find-in-path uses the PATH environment variable which does
! not include this directory. So we can just make sure it runs.
{ } [ "ifconfig" find-in-path drop ] unit-test