ruby-changes:37789
From: ko1 <ko1@a...>
Date: Fri, 6 Mar 2015 17:34:53 +0900 (JST)
Subject: [ruby-changes:37789] ko1:r49870 (trunk): * test/ruby/test_beginendblock.rb: do not change directory.
ko1 2015-03-06 17:34:40 +0900 (Fri, 06 Mar 2015) New Revision: 49870 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49870 Log: * 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...". Modified files: trunk/ChangeLog trunk/test/ruby/test_beginendblock.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 49869) +++ ChangeLog (revision 49870) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Mar 6 17:31:29 2015 Koichi Sasada <ko1@a...> + + * 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 <nobu@r...> * vm_eval.c (vm_call_super): search next super class from the Index: test/ruby/test_beginendblock.rb =================================================================== --- test/ruby/test_beginendblock.rb (revision 49869) +++ test/ruby/test_beginendblock.rb (revision 49870) @@ -57,16 +57,16 @@ class TestBeginEndBlock < Test::Unit::Te https://github.com/ruby/ruby/blob/trunk/test/ruby/test_beginendblock.rb#L57 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)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/