ruby-changes:58682
From: Nobuyoshi <ko1@a...>
Date: Sat, 9 Nov 2019 21:59:28 +0900 (JST)
Subject: [ruby-changes:58682] 20bc038ea3 (master): Debug-print tmpdir info
https://git.ruby-lang.org/ruby.git/commit/?id=20bc038ea3 From 20bc038ea31ee799103bb89068537ed4e4f699b4 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 9 Nov 2019 21:58:55 +0900 Subject: Debug-print tmpdir info diff --git a/spec/ruby/security/cve_2018_6914_spec.rb b/spec/ruby/security/cve_2018_6914_spec.rb index a478ac8..ea99e57 100644 --- a/spec/ruby/security/cve_2018_6914_spec.rb +++ b/spec/ruby/security/cve_2018_6914_spec.rb @@ -18,7 +18,7 @@ describe "CVE-2018-6914 is resisted by" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/security/cve_2018_6914_spec.rb#L18 end @debug_print = ->(actual) { - STDERR.puts({ + PP.pp({ actual: actual, absolute: File.absolute_path(actual), dir: @dir, @@ -26,7 +26,8 @@ describe "CVE-2018-6914 is resisted by" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/security/cve_2018_6914_spec.rb#L26 tmpdir: @tmpdir, Dir_tmpdir: Dir.tmpdir, TMPDIR: ENV['TMPDIR'], - }) + stat: File.stat(@tmpdir), + }, STDERR) } @dir << '/' -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/