readline: fix test
The current test output is correct for libedit but not for readline. Without specifying the library search path, this test was in fact linking against /usr/lib/libreadline.dylib, which is simply a symlink to libedit.3.dylib Closes #706. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
This commit is contained in:
parent
6b10279598
commit
73260c145f
1 changed files with 3 additions and 2 deletions
|
@ -59,7 +59,8 @@ class Readline < Formula
|
|||
return 0;
|
||||
}
|
||||
EOS
|
||||
system ENV.cc, "test.c", "-lreadline", "-o", "test"
|
||||
assert_equal "Hello, World!", pipe_output("./test", "Hello, World!\n").strip
|
||||
system ENV.cc, "-L", lib, "test.c", "-lreadline", "-o", "test"
|
||||
assert_equal "test> Hello, World!\nHello, World!",
|
||||
pipe_output("./test", "Hello, World!\n").strip
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue