swig: use full path to ruby in the test
The test would fail if Ruby 2.4 happened to be installed, since the test hard codes -I/System/Library/Frameworks/Ruby.framework/Headers.
This commit is contained in:
parent
6bd4080894
commit
a0eabe7b1f
1 changed files with 1 additions and 1 deletions
|
@ -40,6 +40,6 @@ class Swig < Formula
|
|||
system ENV.cc, "-c", "test.c"
|
||||
system ENV.cc, "-c", "test_wrap.c", "-I/System/Library/Frameworks/Ruby.framework/Headers/"
|
||||
system ENV.cc, "-bundle", "-undefined", "dynamic_lookup", "test.o", "test_wrap.o", "-o", "test.bundle"
|
||||
assert_equal "2", shell_output("ruby run.rb").strip
|
||||
assert_equal "2", shell_output("/usr/bin/ruby run.rb").strip
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue