From 842395184babb91edf6fe50afa96a766843bf9f1 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 30 Aug 2014 08:16:04 +0100 Subject: [PATCH] csfml: improve test. --- Formula/csfml.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Formula/csfml.rb b/Formula/csfml.rb index 0b792d1156d..64bf239d5ae 100644 --- a/Formula/csfml.rb +++ b/Formula/csfml.rb @@ -22,7 +22,7 @@ class Csfml < Formula end test do - fixture = <<-EOS.undent + (testpath/"test.c").write <<-EOS.undent #include int main (void) @@ -31,7 +31,7 @@ class Csfml < Formula return 0; } EOS - (testpath/'test.c').write(fixture) - system ENV.cc, "-c", "test.c" + system ENV.cc, "test.c", "-lcsfml-window", "-o", "test" + system "./test" end end