From 4bb910816e98c5b059f263ab65ff8076349be9c2 Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 6 Mar 2015 08:34:40 +0000 Subject: * test/ruby/test_beginendblock.rb: do not change directory. Run system command in the directory mounted by vboxfs on Windows 7 and get warning like that "warning: Insecure world writable dir...". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_beginendblock.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb index 9c9d6b5e61..9b573f768c 100644 --- a/test/ruby/test_beginendblock.rb +++ b/test/ruby/test_beginendblock.rb @@ -57,16 +57,16 @@ class TestBeginEndBlock < Test::Unit::TestCase errout = ARGV.shift STDERR.reopen(File.open(errout, "w")) STDERR.sync = true -Dir.chdir(#{q(DIR)}) -system("#{ruby}", "endblockwarn_rb") +system("#{ruby}", File.join(#{q(DIR)}, "endblockwarn_rb")) EOF launcher.close launcherpath = launcher.path errout.close erroutpath = errout.path system(ruby, launcherpath, erroutpath) + path = File.join(DIR, 'endblockwarn_rb') expected = <