ruby-changes:56148
From: Hiroshi <ko1@a...>
Date: Wed, 19 Jun 2019 18:57:29 +0900 (JST)
Subject: [ruby-changes:56148] Hiroshi SHIBATA: 8a3bd06d27 (trunk): use TEMP_DIR.
https://git.ruby-lang.org/ruby.git/commit/?id=8a3bd06d27 From 8a3bd06d277328cab362b0dffe99720fa5b09515 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Sun, 2 Jun 2019 14:18:24 +0300 Subject: use TEMP_DIR. diff --git a/test/racc/helper.rb b/test/racc/helper.rb index 2c9c3fc..83780f3 100644 --- a/test/racc/helper.rb +++ b/test/racc/helper.rb @@ -53,8 +53,8 @@ module Racc https://github.com/ruby/ruby/blob/trunk/test/racc/helper.rb#L53 def assert_debugfile(asset, ok) file = File.basename(asset, '.y') - Dir.chdir(TEST_DIR) do - File.foreach("log/#{file}.y") do |line| + Dir.chdir(LOG_DIR) do + File.foreach("#{file}.y") do |line| line.strip! case line when /sr/ then assert_equal "sr#{ok[0]}", line @@ -94,7 +94,7 @@ module Racc https://github.com/ruby/ruby/blob/trunk/test/racc/helper.rb#L94 end def ruby(*arg) - assert_ruby_status(["-C", TEST_DIR, *arg]) + assert_ruby_status(["-C", TEMP_DIR, *arg]) end end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/