diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-17 02:33:41 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-17 02:33:41 +0000 |
commit | 842e0b05ea3d31ad4c4392076dd5ef99d51737c5 (patch) | |
tree | 187645ce85b61532bdbc100ad2e12b52fd51b4cc | |
parent | b14afd8fde24dabe0cdabd1248c9f1462d30fe63 (diff) |
* 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
-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 |