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

ruby-changes:41293

From: mrkn <ko1@a...>
Date: Tue, 29 Dec 2015 10:37:33 +0900 (JST)
Subject: [ruby-changes:41293] mrkn:r53365 (trunk): * test/mkmf/test_have_func.rb (test_have_func):

mrkn	2015-12-29 10:37:20 +0900 (Tue, 29 Dec 2015)

  New Revision: 53365

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

  Log:
    * test/mkmf/test_have_func.rb (test_have_func):
      Add assertion to examine the existence of HAVE_RUBY_INIT.
    
    * test/mkmf/test_have_func.rb (test_not_have_func):
      Add assertion to examine the absence of HAVE_RUBY_INIT.

  Modified files:
    trunk/ChangeLog
    trunk/test/mkmf/test_have_func.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53364)
+++ ChangeLog	(revision 53365)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Dec 29 10:35:00 2015  Kenta Murata  <mrkn@m...>
+
+	* test/mkmf/test_have_func.rb (test_have_func):
+	  Add assertion to examine the existence of HAVE_RUBY_INIT.
+
+	* test/mkmf/test_have_func.rb (test_not_have_func):
+	  Add assertion to examine the absence of HAVE_RUBY_INIT.
+
 Tue Dec 29 06:50:42 2015  Eric Wong  <e@8...>
 
 	* thread_sync.c: static classes
Index: test/mkmf/test_have_func.rb
===================================================================
--- test/mkmf/test_have_func.rb	(revision 53364)
+++ test/mkmf/test_have_func.rb	(revision 53365)
@@ -6,10 +6,12 @@ class TestMkmf https://github.com/ruby/ruby/blob/trunk/test/mkmf/test_have_func.rb#L6
   class TestHaveFunc < TestMkmf
     def test_have_func
       assert_equal(true, have_func("ruby_init"), MKMFLOG)
+      assert_include($defs, '-DHAVE_RUBY_INIT')
     end
 
     def test_not_have_func
       assert_equal(false, have_func("no_ruby_init"), MKMFLOG)
+      assert_not_include($defs, '-DHAVE_RUBY_INIT')
     end
   end
 end

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

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