From 5e49637bdc37eb11b9d30863e8ba07a29e2948fe Mon Sep 17 00:00:00 2001 From: Hleb Valoshka <375gnu@gmail.com> Date: Tue, 3 Jul 2012 23:13:48 +0300 Subject: Fix call to DL::Function.new in tests The 3rd argument of DL::Function.new is ABI type, not a return type. Signed-off-by: Eric Wong --- test/test_posix_mq.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_posix_mq.rb b/test/test_posix_mq.rb index d48238c..5c7cc11 100644 --- a/test/test_posix_mq.rb +++ b/test/test_posix_mq.rb @@ -110,7 +110,7 @@ class Test_POSIX_MQ < Test::Unit::TestCase if defined?(DL::Function) alarm = libc["alarm"] alarm = DL::CFunc.new(alarm, DL::TYPE_INT, "alarm") - alarm = DL::Function.new(alarm, [DL::TYPE_INT], DL::TYPE_INT) + alarm = DL::Function.new(alarm, [DL::TYPE_INT]) else alarm = libc["alarm", "II"] end -- cgit v1.2.3-24-ge0c7