diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-06 08:34:40 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-06 08:34:40 +0000 |
commit | 4bb910816e98c5b059f263ab65ff8076349be9c2 (patch) | |
tree | 4ca8a15658d04a411e8a56c46d399667e0f86791 /test/ruby/test_beginendblock.rb | |
parent | b6dbffcd89ab051d49dd9ea8dc84f446000c82cd (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
Diffstat (limited to 'test/ruby/test_beginendblock.rb')
-rw-r--r-- | test/ruby/test_beginendblock.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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)) |