summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-06 08:34:40 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-06 08:34:40 +0000
commit4bb910816e98c5b059f263ab65ff8076349be9c2 (patch)
tree4ca8a15658d04a411e8a56c46d399667e0f86791
parentb6dbffcd89ab051d49dd9ea8dc84f446000c82cd (diff)
* 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
-rw-r--r--ChangeLog7
-rw-r--r--test/ruby/test_beginendblock.rb6
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e9c82f2f03..dc75fa41da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Fri Mar 6 17:31:29 2015 Koichi Sasada <ko1@atdot.net>
+
+ * 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@ruby-lang.org>
* 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))