summaryrefslogtreecommitdiff
path: root/test/gdbm
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-03 01:24:42 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-06-03 01:24:42 +0000
commit3a08f62b4f5cabd5e279abab17d3e332cfc0e5e0 (patch)
tree24fe80e8043bcfd97aa5e1d33a6eb7e20855f3c4 /test/gdbm
parentfdc432670238c967fd687e996c49c3f5e06b2e14 (diff)
downloadruby-3a08f62b4f5cabd5e279abab17d3e332cfc0e5e0.tar.gz
* test/gdbm/test_gdbm.rb (test_s_open_create_new): Windows doesn't supports
UNIX like permittions. * test/gdbm/test_gdbm.rb (test_s_open_error): Errno::EWOULDBLOCK is raised on Windows in such case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/gdbm')
-rw-r--r--test/gdbm/test_gdbm.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb
index 03b5eb792b..715ca69620 100644
--- a/test/gdbm/test_gdbm.rb
+++ b/test/gdbm/test_gdbm.rb
@@ -83,7 +83,7 @@ if defined? GDBM
begin
assert_instance_of(GDBM, gdbm = GDBM.open("#{@tmpdir}/#{@prefix}"))
gdbm.close
- assert_equal(File.stat("#{@tmpdir}/#{@prefix}").mode & 0777, 0666)
+ assert_equal(File.stat("#{@tmpdir}/#{@prefix}").mode & 0777, 0666) unless /mswin|mignw/ =~ RUBY_PLATFORM
assert_instance_of(GDBM, gdbm = GDBM.open("#{@tmpdir}/#{@prefix}2", 0644))
gdbm.close
assert_equal(File.stat("#{@tmpdir}/#{@prefix}2").mode & 0777, 0644)
@@ -198,7 +198,7 @@ if defined? GDBM
def test_s_open_error
assert_instance_of(GDBM, gdbm = GDBM.open("#{@tmpdir}/#{@prefix}", 0))
- assert_raise(Errno::EACCES) {
+ assert_raise(Errno::EACCES, Errno::EWOULDBLOCK) {
GDBM.open("#{@tmpdir}/#{@prefix}", 0)
}
gdbm.close