aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-28 08:36:46 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-28 08:36:46 +0000
commit36f71db31eca74cfc3f978b820c96af895211851 (patch)
tree9bc07b0d63e3b0ac9ab806f4572268b05d2e8db6
parenta3d861ef2fb6fa47d7244d26b6de1821d6ee4010 (diff)
downloadruby-36f71db31eca74cfc3f978b820c96af895211851.tar.gz
* test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): skip
the test if gdbm version is 1.8.x. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--test/gdbm/test_gdbm.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a46f63ecfc..368d6f6610 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jan 28 17:33:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): skip
+ the test if gdbm version is 1.8.x.
+
Fri Jan 28 16:30:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* test/ruby/test_require.rb (TestRequire#test_require_too_long_filename):
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb
index 715ca69620..117c73f713 100644
--- a/test/gdbm/test_gdbm.rb
+++ b/test/gdbm/test_gdbm.rb
@@ -92,8 +92,8 @@ if defined? GDBM
end
end
def test_s_open_no_create
- assert_nil(gdbm = GDBM.open("#{@tmpdir}/#{@prefix}", nil),
- "this test is failed on libgdbm 1.8.0")
+ skip "this test is failed on libgdbm 1.8.0" if /1\.8\./ =~ GDBM::VERSION
+ assert_nil(gdbm = GDBM.open("#{@tmpdir}/#{@prefix}", nil))
ensure
gdbm.close if gdbm
end