aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2014-08-30 08:16:04 +0100
committerMike McQuaid2014-08-30 08:16:05 +0100
commit7546d6e3a9095db5fef61bdfe2d88b7945526997 (patch)
tree3594e61bc8bc44e39ad0c22457761430f85071f5 /Library/Formula
parent4addbe565fbce360f15d3d750f6a59f331842386 (diff)
downloadhomebrew-7546d6e3a9095db5fef61bdfe2d88b7945526997.tar.bz2
csfml: improve test.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/csfml.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/csfml.rb b/Library/Formula/csfml.rb
index 0b792d115..64bf239d5 100644
--- a/Library/Formula/csfml.rb
+++ b/Library/Formula/csfml.rb
@@ -22,7 +22,7 @@ class Csfml < Formula
end
test do
- fixture = <<-EOS.undent
+ (testpath/"test.c").write <<-EOS.undent
#include <SFML/Window.h>
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