summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gdbm/test_gdbm.rb1
-rw-r--r--test/sdbm/test_sdbm.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb
index f4a6bfb197..a2a3fc45fa 100644
--- a/test/gdbm/test_gdbm.rb
+++ b/test/gdbm/test_gdbm.rb
@@ -195,6 +195,7 @@ if defined? GDBM
end
def test_s_open_error
+ return if /(ms|bcc)win|mingw|djgpp/ =~ RUBY_PLATFORM
assert_instance_of(GDBM, gdbm = GDBM.open("tmptest_gdbm", 0))
assert_raise(Errno::EACCES) {
GDBM.open("tmptest_gdbm", 0)
diff --git a/test/sdbm/test_sdbm.rb b/test/sdbm/test_sdbm.rb
index 17b3d3c4e7..8789d719dd 100644
--- a/test/sdbm/test_sdbm.rb
+++ b/test/sdbm/test_sdbm.rb
@@ -118,6 +118,7 @@ class TestSDBM < Test::Unit::TestCase
end
def test_s_open_error
+ return if /(ms|bcc)win|mingw|djgpp/ =~ RUBY_PLATFORM
assert_instance_of(SDBM, sdbm = SDBM.open("tmptest_sdbm", 0))
assert_raise(Errno::EACCES) {
SDBM.open("tmptest_sdbm", 0)