Bug #5370
closed[psych] test_yamldbm.rb failures/warnings on Win7/Arch
Description
After building trunk@33339 on 32bit Win7 and Arch and running make test-all TESTS=psych
I get the following.
Win7 Notes:
- using RubyInstaller build recipes
- using prebuilt GDBM v1.8.3-1 from http://sourceforge.net/projects/gnuwin32/files/gdbm/1.8.3-1/
- test build temp db files named like 'yamldbm.tmp.2948.{dir,pag} not '*.db' file as in *nix. Updating
YAMLDBMTest#teardown
on
Win7 to unlink both temp files did not affect the failures.
Arch Results¶
...
BDB3028 yamldbm.tmp.17034.db: unable to flush: No such file or directory
[ SNIP (13) more of the above messages]
...
431 tests, 1189 assertions, 0 failures, 0 errors, 0 skips
[jon@archee build]$ ruby -rdbm -v -e 'puts DBM::VERSION'
ruby 1.9.4dev (2011-09-26 trunk 33330) [i686-Linux]
Berkeley DB 5.2.28: (June 10, 2011)
Win7 Results¶
...
-
Error:
test_fetch(Psych::YAMLDBMTest):
Errno::EACCES: Permission denied - yamldbm.tmp.2948
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:ininitialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in
new'
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in `setup' -
Error:
test_has_value?(Psych::YAMLDBMTest):
Errno::EACCES: Permission denied - yamldbm.tmp.2948
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:ininitialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in
new'
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in `setup' -
Error:
test_invert(Psych::YAMLDBMTest):
Errno::EACCES: Permission denied - yamldbm.tmp.2948
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:ininitialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in
new'
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in `setup' -
Error:
test_key(Psych::YAMLDBMTest):
Errno::EACCES: Permission denied - yamldbm.tmp.2948
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:ininitialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in
new'
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in `setup' -
Error:
test_reject(Psych::YAMLDBMTest):
Errno::EACCES: Permission denied - yamldbm.tmp.2948
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:ininitialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in
new'
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in `setup' -
Error:
test_replace(Psych::YAMLDBMTest):
Errno::EACCES: Permission denied - yamldbm.tmp.2948
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:ininitialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in
new'
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in `setup' -
Error:
test_shift(Psych::YAMLDBMTest):
Errno::EACCES: Permission denied - yamldbm.tmp.2948
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:ininitialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in
new'
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in `setup' -
Error:
test_store(Psych::YAMLDBMTest):
Errno::EACCES: Permission denied - yamldbm.tmp.2948
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:ininitialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in
new'
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in `setup' -
Error:
test_store_using_carret(Psych::YAMLDBMTest):
Errno::EACCES: Permission denied - yamldbm.tmp.2948
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:ininitialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in
new'
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in `setup' -
Error:
test_to_a(Psych::YAMLDBMTest):
Errno::EACCES: Permission denied - yamldbm.tmp.2948
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:ininitialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in
new'
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in `setup' -
Error:
test_to_hash(Psych::YAMLDBMTest):
Errno::EACCES: Permission denied - yamldbm.tmp.2948
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:ininitialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in
new'
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in `setup' -
Error:
test_update(Psych::YAMLDBMTest):
Errno::EACCES: Permission denied - yamldbm.tmp.2948
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:ininitialize' c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in
new'
c:/Users/Jon/Documents/RubyDev/ruby-git/test/psych/test_yamldbm.rb:11:in `setup'
431 tests, 1157 assertions, 0 failures, 12 errors, 0 skips
sh-3.1$ ruby -rdbm -v -e 'puts DBM::VERSION'
ruby 1.9.4dev (2011-09-26 trunk 33339) [i386-mingw32]
unknown
sh-3.1$ irb -rdbm
irb(main):001:0> db = DBM.open('my_testdb')
=> #DBM:0x1f7e260
irb(main):002:0> db['happy'] = 'no'
=> "no"
irb(main):003:0> puts db['happy']
no
=> nil
irb(main):004:0> db.close
=> nil
irb(main):005:0> db.closed?
=> true
irb(main):006:0> db.inspect
=> "#DBM:0x1f7e260"
irb(main):007:0> RUBY_DESCRIPTION
=> "ruby 1.9.4dev (2011-09-26 trunk 33339) [i386-mingw32]"