diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-03 01:24:42 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-06-03 01:24:42 +0000 |
commit | 3a08f62b4f5cabd5e279abab17d3e332cfc0e5e0 (patch) | |
tree | 24fe80e8043bcfd97aa5e1d33a6eb7e20855f3c4 /test/gdbm | |
parent | fdc432670238c967fd687e996c49c3f5e06b2e14 (diff) | |
download | ruby-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.rb | 4 |
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 |