diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/fiddle/test_import.rb | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Sep 17 11:33:35 2014 Laurent Arnoud <laurent@spkdev.net> + + * test/fiddle/test_import.rb (Fiddle::TestImport#test_sizeof): + added test for long long [fix GH-716] + Wed Sep 17 11:09:21 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com> * tool/rbinstall.rb: fixed invalid options with latest rubygems. diff --git a/test/fiddle/test_import.rb b/test/fiddle/test_import.rb index d06477bfa5..c83f50fe44 100644 --- a/test/fiddle/test_import.rb +++ b/test/fiddle/test_import.rb @@ -63,6 +63,7 @@ module Fiddle assert_equal(SIZEOF_VOIDP, LIBC.sizeof("FILE*")) assert_equal(LIBC::MyStruct.size(), LIBC.sizeof(LIBC::MyStruct)) assert_equal(LIBC::MyStruct.size(), LIBC.sizeof(LIBC::MyStruct.malloc())) + assert_equal(SIZEOF_LONG_LONG, LIBC.sizeof("long long")) end Fiddle.constants.grep(/\ATYPE_(?!VOID\z)(.*)/) do |