From 2e97c47bc167b88c297de3733a752dccfb0eb3e0 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Thu, 8 Oct 2015 16:59:37 +0800 Subject: [PATCH] findutils: better test --- Formula/findutils.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Formula/findutils.rb b/Formula/findutils.rb index fe118ea20b..4284e4305e 100644 --- a/Formula/findutils.rb +++ b/Formula/findutils.rb @@ -29,6 +29,10 @@ class Findutils < Formula end test do - system "#{bin}/gfind", "--version" + if build.with? "default-names" + system "#{bin}/find", "." + else + system "#{bin}/gfind", "." + end end end