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

ruby-changes:29549

From: shirosaki <ko1@a...>
Date: Mon, 24 Jun 2013 22:39:27 +0900 (JST)
Subject: [ruby-changes:29549] shirosaki:r41601 (trunk): test_gdbm.rb: skip a test on Windows

shirosaki	2013-06-24 22:39:15 +0900 (Mon, 24 Jun 2013)

  New Revision: 41601

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

  Log:
    test_gdbm.rb: skip a test on Windows
    
    * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_nolock):
      skip a failing test on Windows because flock() implementation is
      different from Unix.

  Modified files:
    trunk/ChangeLog
    trunk/test/gdbm/test_gdbm.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41600)
+++ ChangeLog	(revision 41601)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Jun 24 22:11:37 2013  Hiroshi Shirosaki  <h.shirosaki@g...>
+
+	* test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_nolock):
+	  skip a failing test on Windows because flock() implementation is
+	  different from Unix.
+
 Mon Jun 24 22:06:14 2013  Hiroshi Shirosaki  <h.shirosaki@g...>
 
 	* test/rubygems/test_gem_installer.rb (test_install_extension_flat):
Index: test/gdbm/test_gdbm.rb
===================================================================
--- test/gdbm/test_gdbm.rb	(revision 41600)
+++ test/gdbm/test_gdbm.rb	(revision 41601)
@@ -190,6 +190,10 @@ if defined? GDBM https://github.com/ruby/ruby/blob/trunk/test/gdbm/test_gdbm.rb#L190
 
       STDERR.puts Dir.glob("#{dbname}*") if $DEBUG
 
+      # The following test fails on Windows because flock() implementation
+      # is different from Unix.
+      return if /mswin|mingw/ =~ RUBY_PLATFORM
+
       open_db_child(dbname) do
         assert_nothing_raised(Errno::EWOULDBLOCK, Errno::EAGAIN, Errno::EACCES) {
           # this test is failed on Cygwin98 (???)

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

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