1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/fiddle/test_import.rb (Fiddle::TestImport#test_sizeof):

added test for long long [fix GH-716]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
hsbt 2014-09-17 02:33:41 +00:00
parent b14afd8fde
commit 842e0b05ea
2 changed files with 6 additions and 0 deletions

View file

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

View file

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