1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/dbm/test_dbm.rb: fix skip condition for libgdbm 1.8.0 or prior.

reported by Bohuslav Kabrda.
  [ruby-core:42685] [Bug #6036]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2012-02-16 15:25:06 +00:00
parent 2e544c3362
commit d698ea8991
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Fri Feb 17 00:23:25 2012 Tanaka Akira <akr@fsij.org>
* test/dbm/test_dbm.rb: fix skip condition for libgdbm 1.8.0 or prior.
reported by Bohuslav Kabrda.
[ruby-core:42685] [ruby-trunk - Bug #6036]
Fri Feb 17 00:04:21 2012 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb: check _DB_H_ macro unavailable except

View file

@ -105,7 +105,7 @@ if defined? DBM
end
def test_s_open_no_create
skip "dbm_open() is broken on libgdbm 1.8.0 or prior" if /GDBM version 1\.(?:[0-7]|8\.0)/ =~ DBM::VERSION
skip "dbm_open() is broken on libgdbm 1.8.0 or prior (#{DBM::VERSION})" if /GDBM version 1\.(?:[0-7]\b|8\.0)/ =~ DBM::VERSION
assert_nil(dbm = DBM.open("#{@tmpdir}/#{@prefix}", nil))
ensure
dbm.close if dbm
@ -529,7 +529,7 @@ if defined? DBM
end
def test_writer_open_notexist
skip "dbm_open() is broken on libgdbm 1.8.0 or prior" if /GDBM version 1\.(?:[0-7]|8\.0)/ =~ DBM::VERSION
skip "dbm_open() is broken on libgdbm 1.8.0 or prior (#{DBM::VERSION})" if /GDBM version 1\.(?:[0-7]\b|8\.0)/ =~ DBM::VERSION
assert_raise(Errno::ENOENT) {
DBM.open("#{@tmproot}/a", 0666, DBM::WRITER)
}