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

ruby-changes:41928

From: odaira <ko1@a...>
Date: Sat, 5 Mar 2016 07:21:23 +0900 (JST)
Subject: [ruby-changes:41928] odaira:r54002 (trunk): * test/zlib/test_zlib.rb (test_adler32_combine, test_crc32_combine):

odaira	2016-03-05 07:20:56 +0900 (Sat, 05 Mar 2016)

  New Revision: 54002

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

  Log:
    * test/zlib/test_zlib.rb (test_adler32_combine, test_crc32_combine):
      Skip two tests on AIX because zconf.h in zlib does not correctly
      recognize _LARGE_FILES in AIX. The problem was already reported
      to zlib, and skip these tests until it is fixed.

  Modified files:
    trunk/ChangeLog
    trunk/test/zlib/test_zlib.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54001)
+++ ChangeLog	(revision 54002)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Mar  5 07:14:10 2016  Rei Odaira  <Rei.Odaira@g...>
+
+	* test/zlib/test_zlib.rb (test_adler32_combine, test_crc32_combine):
+	  Skip two tests on AIX because zconf.h in zlib does not correctly
+	  recognize _LARGE_FILES in AIX. The problem was already reported
+	  to zlib, and skip these tests until it is fixed.
+
 Sat Mar  5 03:07:40 2016  Rei Odaira  <Rei.Odaira@g...>
 
 	* thread_pthread.c (getstack): __pi_stacksize returned by
Index: test/zlib/test_zlib.rb
===================================================================
--- test/zlib/test_zlib.rb	(revision 54001)
+++ test/zlib/test_zlib.rb	(revision 54002)
@@ -1070,6 +1070,11 @@ if defined? Zlib https://github.com/ruby/ruby/blob/trunk/test/zlib/test_zlib.rb#L1070
         assert_equal(0x02820145, Zlib.adler32_combine(one, two, 1))
       rescue NotImplementedError
         skip "adler32_combine is not implemented"
+      rescue Minitest::Assertion
+        if /aix/ =~ RUBY_PLATFORM
+          skip "zconf.h in zlib does not handle _LARGE_FILES in AIX. Skip until it is fixed"
+        end
+        raise $!
       end
     end
 
@@ -1087,6 +1092,11 @@ if defined? Zlib https://github.com/ruby/ruby/blob/trunk/test/zlib/test_zlib.rb#L1092
         assert_equal(0x8c736521, Zlib.crc32_combine(one, two, 1))
       rescue NotImplementedError
         skip "crc32_combine is not implemented"
+      rescue Minitest::Assertion
+        if /aix/ =~ RUBY_PLATFORM
+          skip "zconf.h in zlib does not handle _LARGE_FILES in AIX. Skip until it is fixed"
+        end
+        raise $!
       end
     end
 

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

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