diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | test/ruby/test_beginendblock.rb | 6 |
2 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,10 @@ +Fri Mar 6 17:31:29 2015 Koichi Sasada <[email protected]> + + * 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...". + Fri Mar 6 10:31:00 2015 Nobuyoshi Nakada <[email protected]> * vm_eval.c (vm_call_super): search next super class from the 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 = <<EOW -endblockwarn_rb:2: warning: END in method; use at_exit +#{path}:2: warning: END in method; use at_exit (eval):2: warning: END in method; use at_exit EOW assert_equal(expected, File.read(erroutpath)) |