diff options
author | shirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-24 13:39:15 +0000 |
---|---|---|
committer | shirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-24 13:39:15 +0000 |
commit | a75e4aef9ae3ea2cb01109e47c5be311a273fe21 (patch) | |
tree | af52088a5bcb2cdc6d25b99dd7a20630451051da /test/gdbm | |
parent | 274f1c88068216c42c7dbedabc20ecedd4b962b1 (diff) | |
download | ruby-a75e4aef9ae3ea2cb01109e47c5be311a273fe21.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/gdbm')
-rw-r--r-- | test/gdbm/test_gdbm.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb index 7d695d6e0a..d3eaa77f50 100644 --- a/test/gdbm/test_gdbm.rb +++ b/test/gdbm/test_gdbm.rb @@ -190,6 +190,10 @@ if defined? GDBM 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 (???) |