[前][次][番号順一覧][スレッド一覧]

ruby-changes:35525

From: hsbt <ko1@a...>
Date: Wed, 17 Sep 2014 11:33:47 +0900 (JST)
Subject: [ruby-changes:35525] hsbt:r47607 (trunk): * test/fiddle/test_import.rb (Fiddle::TestImport#test_sizeof):

hsbt	2014-09-17 11:33:41 +0900 (Wed, 17 Sep 2014)

  New Revision: 47607

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47607

  Log:
    * test/fiddle/test_import.rb (Fiddle::TestImport#test_sizeof):
      added test for long long [fix GH-716]

  Modified files:
    trunk/ChangeLog
    trunk/test/fiddle/test_import.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 47606)
+++ ChangeLog	(revision 47607)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Sep 17 11:33:35 2014  Laurent Arnoud  <laurent@s...>
+
+	* 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@g...>
 
 	* tool/rbinstall.rb: fixed invalid options with latest rubygems.
Index: test/fiddle/test_import.rb
===================================================================
--- test/fiddle/test_import.rb	(revision 47606)
+++ test/fiddle/test_import.rb	(revision 47607)
@@ -63,6 +63,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/test/fiddle/test_import.rb#L63
       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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]