From 131f694330d1d44add74643a264ff7c4d7f06216 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 25 Jul 2012 06:49:35 +0000 Subject: Suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/gdbm/test_gdbm.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/gdbm') diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb index 621101c9b3..38d97c1605 100644 --- a/test/gdbm/test_gdbm.rb +++ b/test/gdbm/test_gdbm.rb @@ -147,14 +147,14 @@ if defined? GDBM def test_s_open_lock return unless have_fork? # snip this test pid = fork() { - assert_instance_of(GDBM, gdbm = GDBM.open("#{@tmpdir}/#{@prefix}", 0644)) + assert_instance_of(GDBM, GDBM.open("#{@tmpdir}/#{@prefix}", 0644)) sleep 2 } begin sleep 1 assert_raise(Errno::EWOULDBLOCK) { begin - assert_instance_of(GDBM, gdbm2 = GDBM.open("#{@tmpdir}/#{@prefix}", 0644)) + assert_instance_of(GDBM, GDBM.open("#{@tmpdir}/#{@prefix}", 0644)) rescue Errno::EAGAIN, Errno::EACCES raise Errno::EWOULDBLOCK end @@ -187,7 +187,7 @@ if defined? GDBM return unless have_fork? # snip this test pid = fork() { - assert_instance_of(GDBM, gdbm = GDBM.open("#{@tmpdir}/#{@prefix}", 0644, + assert_instance_of(GDBM, GDBM.open("#{@tmpdir}/#{@prefix}", 0644, GDBM::NOLOCK)) sleep 2 } @@ -202,10 +202,10 @@ if defined? GDBM gdbm2.close if gdbm2 end - p Dir.glob("#{@tmpdir}/#{@prefix}*") if $DEBUG + STDERR.puts Dir.glob("#{@tmpdir}/#{@prefix}*") if $DEBUG pid = fork() { - assert_instance_of(GDBM, gdbm = GDBM.open("#{@tmpdir}/#{@prefix}", 0644)) + assert_instance_of(GDBM, GDBM.open("#{@tmpdir}/#{@prefix}", 0644)) sleep 2 } begin -- cgit v1.2.3