Put all test argument inside the system call

Closes Homebrew/homebrew#45293.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
This commit is contained in:
Thierry Moisan 2015-12-21 08:20:08 -05:00 committed by Andrew Janke
parent f012ce70d4
commit b0419f4a7e

View file

@ -40,14 +40,12 @@ class Eet < Formula
test do
cp "#{pkgshare}/examples/eet-basic.c", testpath
eina = Formula["eina"]
flags = %W[
-I#{include}/eet-1
-I#{eina.include}/eina-1
-I#{eina.include}/eina-1/eina
-L#{lib}
-leet
]
system ENV.cc, "-o", "eet-basic", "eet-basic.c", *flags
system ENV.cc, "-o", "eet-basic", "eet-basic.c",
"-I#{include}/eet-1",
"-I#{eina.include}/eina-1",
"-I#{eina.include}/eina-1/eina",
"-L#{lib}",
"-leet"
system "./eet-basic"
end
end