mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/gdbm/test_gdbm.rb: specify pid for the argument of
Process.wait. workaround for Cygwin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8ebcfdc662
commit
013f6fdfa4
2 changed files with 11 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Dec 14 12:11:46 2005 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/gdbm/test_gdbm.rb: specify pid for the argument of
|
||||||
|
Process.wait. workaround for Cygwin.
|
||||||
|
|
||||||
Wed Dec 14 12:01:26 2005 Tanaka Akira <akr@m17n.org>
|
Wed Dec 14 12:01:26 2005 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
* marshal.c (r_object0): fix a GC problem for reading a bignum on
|
* marshal.c (r_object0): fix a GC problem for reading a bignum on
|
||||||
|
|
|
@ -118,7 +118,7 @@ if defined? GDBM
|
||||||
end
|
end
|
||||||
def test_s_open_lock
|
def test_s_open_lock
|
||||||
return unless have_fork? # snip this test
|
return unless have_fork? # snip this test
|
||||||
fork() {
|
pid = fork() {
|
||||||
assert_instance_of(GDBM, gdbm = GDBM.open("tmptest_gdbm", 0644))
|
assert_instance_of(GDBM, gdbm = GDBM.open("tmptest_gdbm", 0644))
|
||||||
sleep 2
|
sleep 2
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,7 @@ if defined? GDBM
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
ensure
|
ensure
|
||||||
Process.wait
|
Process.wait pid
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -158,7 +158,7 @@ if defined? GDBM
|
||||||
end
|
end
|
||||||
return unless have_fork? # snip this test
|
return unless have_fork? # snip this test
|
||||||
|
|
||||||
fork() {
|
pid = fork() {
|
||||||
assert_instance_of(GDBM, gdbm = GDBM.open("tmptest_gdbm", 0644,
|
assert_instance_of(GDBM, gdbm = GDBM.open("tmptest_gdbm", 0644,
|
||||||
GDBM::NOLOCK))
|
GDBM::NOLOCK))
|
||||||
sleep 2
|
sleep 2
|
||||||
|
@ -170,13 +170,13 @@ if defined? GDBM
|
||||||
assert_instance_of(GDBM, gdbm2 = GDBM.open("tmptest_gdbm", 0644))
|
assert_instance_of(GDBM, gdbm2 = GDBM.open("tmptest_gdbm", 0644))
|
||||||
}
|
}
|
||||||
ensure
|
ensure
|
||||||
Process.wait
|
Process.wait pid
|
||||||
gdbm2.close if gdbm2
|
gdbm2.close if gdbm2
|
||||||
end
|
end
|
||||||
|
|
||||||
p Dir.glob("tmptest_gdbm*") if $DEBUG
|
p Dir.glob("tmptest_gdbm*") if $DEBUG
|
||||||
|
|
||||||
fork() {
|
pid = Process.fork() {
|
||||||
assert_instance_of(GDBM, gdbm = GDBM.open("tmptest_gdbm", 0644))
|
assert_instance_of(GDBM, gdbm = GDBM.open("tmptest_gdbm", 0644))
|
||||||
sleep 2
|
sleep 2
|
||||||
}
|
}
|
||||||
|
@ -189,7 +189,7 @@ if defined? GDBM
|
||||||
GDBM::NOLOCK))
|
GDBM::NOLOCK))
|
||||||
}
|
}
|
||||||
ensure
|
ensure
|
||||||
Process.wait
|
Process.wait pid
|
||||||
gdbm2.close if gdbm2
|
gdbm2.close if gdbm2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue