From 4952e5dc625c2057dd5953b1ecf4f14ff2a9baad Mon Sep 17 00:00:00 2001 From: Ulysse Buonomo Date: Wed, 10 Jul 2024 16:02:15 +0200 Subject: [PATCH] verbose --- .github/workflows/ci.yml | 2 +- test/cases/helper_cockroachdb.rb | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8974277..aa459188 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,4 +88,4 @@ jobs: done cat ${{ github.workspace }}/setup.sql | cockroach sql --insecure - name: Test - run: bundle exec rake test TESTOPTS='--profile=3' + run: bundle exec rake test TESTOPTS='--profile=3 --verbose' diff --git a/test/cases/helper_cockroachdb.rb b/test/cases/helper_cockroachdb.rb index 9ec21e5a..d0d9602d 100644 --- a/test/cases/helper_cockroachdb.rb +++ b/test/cases/helper_cockroachdb.rb @@ -200,16 +200,3 @@ def header(stream) end ActiveRecord::SchemaDumper.prepend(NoHeaderExt) - -def bugmsg(header, stdout) - bugged = begin; print; rescue IOError; "💥 "; end - STDOUT.puts "🤞#{header.rjust(17)}: stdout=#{stdout.inspect} " \ - "#{bugged}(at #{caller_locations(2, 1).first})" -end - -trace_var :$stdout, (proc { bugmsg("$stdout=", _1) }) - -TracePoint.trace(:a_return) do |tp| - next unless tp.method_id == :reopen && tp.self == $stdout - bugmsg("$stdout#reopen", $stdout) -end