diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-04 02:24:54 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-04 02:24:54 +0000 |
commit | 60f2184922eedceb720307d25714bc9eb146b056 (patch) | |
tree | fcaa6bb519f44e88b8d8036196e36ec2899ae5f5 /test/sdbm | |
parent | 507dd0e1b2db570c16c4711fbd86f1fdd9a6fc5a (diff) | |
download | ruby-60f2184922eedceb720307d25714bc9eb146b056.tar.gz |
* test/{dbm,gdbm,sdbm}/test_{dbm,gdbm,sdbm}.rb: skip some tests
which using fork on fork-less platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/sdbm')
-rw-r--r-- | test/sdbm/test_sdbm.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/sdbm/test_sdbm.rb b/test/sdbm/test_sdbm.rb index d94b5e94af..58c21230ed 100644 --- a/test/sdbm/test_sdbm.rb +++ b/test/sdbm/test_sdbm.rb @@ -31,6 +31,15 @@ class TestSDBM < Test::Unit::TestCase end end + def have_fork? + begin + fork{} + true + rescue NotImplementedError + false + end + end + def test_version assert(! SDBM.const_defined?(:VERSION)) end @@ -70,6 +79,7 @@ class TestSDBM < Test::Unit::TestCase if not defined? SDBM::NOLOCK return end + return unless have_fork? # snip this test fork() { assert_instance_of(SDBM, sdbm = SDBM.open("tmptest_sdbm", 0644, |