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:
Shaun Jackman 2016-04-29 16:08:09 -07:00 committed by Martin Afanasjew
parent 6b10279598
commit 73260c145f

View file

@ -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