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

ruby-changes:30689

From: akr <ko1@a...>
Date: Mon, 2 Sep 2013 12:29:30 +0900 (JST)
Subject: [ruby-changes:30689] akr:r42768 (trunk): * test/ruby/test_bignum.rb (test_interrupt_during_to_s): Disable it

akr	2013-09-02 12:29:16 +0900 (Mon, 02 Sep 2013)

  New Revision: 42768

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

  Log:
    * test/ruby/test_bignum.rb (test_interrupt_during_to_s): Disable it
      when GMP is used.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_bignum.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42767)
+++ ChangeLog	(revision 42768)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Sep  2 12:28:38 2013  Tanaka Akira  <akr@f...>
+
+	* test/ruby/test_bignum.rb (test_interrupt_during_to_s): Disable it
+	  when GMP is used.
+
 Mon Sep  2 07:02:10 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (Init_Bignum): Define Bignum::GMP_VERSION when GMP is used.
Index: test/ruby/test_bignum.rb
===================================================================
--- test/ruby/test_bignum.rb	(revision 42767)
+++ test/ruby/test_bignum.rb	(revision 42768)
@@ -577,6 +577,9 @@ class TestBignum < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_bignum.rb#L577
   end
 
   def test_interrupt_during_to_s
+    if defined?(Bignum::GMP_VERSION)
+      return # GMP doesn't support interrupt during an operation.
+    end
     time = Time.now
     start_flag = false
     end_flag = false

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

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