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 test do
cp "#{pkgshare}/examples/eet-basic.c", testpath cp "#{pkgshare}/examples/eet-basic.c", testpath
eina = Formula["eina"] eina = Formula["eina"]
flags = %W[ system ENV.cc, "-o", "eet-basic", "eet-basic.c",
-I#{include}/eet-1 "-I#{include}/eet-1",
-I#{eina.include}/eina-1 "-I#{eina.include}/eina-1",
-I#{eina.include}/eina-1/eina "-I#{eina.include}/eina-1/eina",
-L#{lib} "-L#{lib}",
-leet "-leet"
]
system ENV.cc, "-o", "eet-basic", "eet-basic.c", *flags
system "./eet-basic" system "./eet-basic"
end end
end end