aboutsummaryrefslogtreecommitdiffstats
path: root/test/gdbm
Commit message (Collapse)AuthorAgeFilesLines
* Add frozen_string_literal: false for all filesnaruse2015-12-161-0/+1
| | | | | | When you change this to true, you may need to add more tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gdbm.rb: typonobu2015-11-081-1/+1
| | | | | | * test/gdbm/test_gdbm.rb (teardown): fix instance variable name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gdbm.rb: sync after reorganizenobu2015-11-041-3/+2
| | | | | | | * test/gdbm/test_gdbm.rb (test_reorganize): sync after reorganize to ensure that the db file get packed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gdbm.rb: teardownnobu2015-11-031-1/+3
| | | | | | * test/gdbm/test_gdbm.rb (teardown): show hidden files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gdbm.rb: teardownnobu2015-11-031-0/+7
| | | | | | | * test/gdbm/test_gdbm.rb (teardown): show tmpdir contents if failed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_lock): skipodaira2015-09-241-1/+1
| | | | | | | this test on AIX. The issue is the same as on Solaris. [ruby-dev:47631] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/gdbm/test_gdbm.rb: Added test for each_key called without a block.hsbt2014-12-171-0/+4
| | | | | | Patch by @joeyates [fix GH-783] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/lib/envutil.rb: Moved from test/ruby/.akr2014-11-131-1/+0
| | | | | | | | | | | | | | * test/lib/find_executable.rb: Ditto. * test/lib/memory_status.rb: Ditto. * test/lib/test/unit.rb: require envutil. * test/: Don't require envutil in test files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_object.rb: Specify an exception class for rescue clause.akr2014-11-111-1/+1
| | | | | | | | | | | * test/dbm/test_dbm.rb: Ditto. * test/gdbm/test_gdbm.rb: Ditto. * test/sdbm/test_sdbm.rb: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dbm/test_dbm.rb: Use Etc.uname.akr2014-05-191-6/+2
| | | | | | | | * test/gdbm/test_gdbm.rb: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/gdbm/test_gdbm.rb: skip TestGDBM#test_s_open_lock on Solaris.ngoto2013-08-201-0/+2
| | | | | | | | | On Solaris (and platforms which do not have flock and have lockf), with GDBM 1.10, gdbm_open(3) blocks when opening already locked gdbm file. [Bug #8790] [ruby-dev:47631] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gdbm.rb: skip a test on Windowsshirosaki2013-06-241-0/+4
| | | | | | | | * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_nolock): skip a failing test on Windows because flock() implementation is different from Unix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gdbm.rb: open_db_childnobu2013-06-191-58/+36
| | | | | | | * test/gdbm/test_gdbm.rb (TestGDBM#open_db_child): open the db in a child process and handshake using popen. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gdbm.rb: reap zombienobu2013-06-191-1/+1
| | | | | | * test/gdbm/test_gdbm.rb (TestGDBM#have_fork): reap zombie git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Suppress warnings.naruse2012-07-251-5/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/ChangeLog-1.9.3, test/gdbm/test_gdbm.rb: fixed mingw typo.nobu2011-12-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dbm/test_dbm.rb: split tests for read only database.akr2011-11-081-12/+31
| | | | | | | | * test/gdbm/test_gdbm.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create,kosaki2011-01-281-12/+5
| | | | | | | | | TestGDBM2#test_writer_open_notexist): We only need to skip libgdbm 1.8.0, not all 1.8.x. 1.8.1 or later don't have GDBM_WRITER sickness. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/gdbm/test_gdbm.rb (TestGDBM2#test_writer_open_notexist):kosaki2011-01-281-3/+12
| | | | | | | | | gdbm 1.8.x changed GDBM::WRITER behavior. Thus our testcase need to be changed too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): skipkosaki2011-01-281-2/+2
| | | | | | | | 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
* * test/gdbm/test_gdbm.rb (test_s_open_create_new): Windows doesn't supportsusa2010-06-031-2/+2
| | | | | | | | | | 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
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-061-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/gdbm/gdbm.c (fgdbm_index): make #index warn like Hash.matz2008-11-081-3/+3
| | | | | | | | [ruby-dev:37039] * ext/sdbm/init.c (Init_sdbm): typo fixed. [ruby-dev:37039] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test: assert_raises has been deprecated since a long time ago.nobu2008-09-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): failedkazu2008-04-231-2/+2
| | | | | | | notice moved from comment to assertion message. [ruby-dev:29127] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* forgot to modify TestDBM2 and TestGDBM2.akr2007-10-241-13/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use Dir.mktmpdir.akr2007-10-241-3/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't generate temporary files under current directory.akr2007-09-281-30/+33
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/{dbm,gdbm}/test_{dbm,gdbm}.rb: shouldn't use host_os. useusa2007-02-271-2/+2
| | | | | | | target_os instead. [ruby-list:43225] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * mkconfig.rb: generate RbConfig instead of Config.akr2006-02-201-2/+2
| | | | | | | | | | | | | | | * instruby.rb, rubytest.rb, runruby.rb, bcc32/Makefile.sub, ext/extmk.rb, ext/dl/extconf.rb, ext/iconv/charset_alias.rb, lib/mkmf.rb, lib/rdoc/ri/ri_paths.rb, lib/webrick/httpservlet/cgihandler.rb, test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb, test/ruby/envutil.rb, test/soap/calc/test_calc_cgi.rb, test/soap/header/test_authheader_cgi.rb, test/soap/ssl/test_ssl.rb, win32/mkexports.rb, win32/resource.rb: Use RbConfig instead of Config. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* dbm/test_dbm.rb: specify pid for Process.wait.akr2005-08-121-7/+31
| | | | | | | | | | | gdbm/test_gdbm.rb: ditto. sdbm/test_sdbm.rb: ditto. dbm/test_dbm.rb: add tests for open when db is not exist. gdbm/test_gdbm.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/{dbm,gdbm,sdbm}/test_{dbm,gdbm,sdbm}.rb: skip some testsusa2005-07-041-0/+11
| | | | | | | which using fork on fork-less platforms. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_closed): new method DBM#closed?usa2005-06-201-1/+3
| | | | | | | | | | | | | | | | * ext/gdbm/gdbm.c (fgdbm_closed): new method GDBM#closed? * ext/sdbm/init.c (fsdbm_closed): new method SDBM#closed? * test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb, test/sdbm/test_sdbm.rb (teardown): close all db objects before deleting data files. * win32/win32.{ch} (unlink): hook runtime function to change file attribute before unlinking. merge from 1.8, see [ruby-dev:26360] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dbm/test_dbm.rb: merged from ext/dbm/testdbm.rb.akr2005-06-041-2/+628
| | | | | | | * test/gdbm/test_gdbm.rb: merged from ext/gdbm/testgdbm.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_f_getenv): prohibit for $SAFE=4. [ruby-dev:24908]matz2004-11-181-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dbm/dbm.c (fdbm_initialize): accept optional 3rd argument toakr2004-05-161-1/+13
| | | | | | | | | specify an open flag. (Init_dbm): define open flags: DBM::READER, DBM::WRITER, DBM::WRCREAT and DBM::NEWDB. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add freeze test for dbm and gdbm.akr2004-05-071-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a gdbm test for [ruby-dev:23381]akr2004-04-151-0/+33
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e