Skip to content

Commit

Permalink
verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
BuonOmo committed Jul 10, 2024
1 parent dba0c06 commit 4952e5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
13 changes: 0 additions & 13 deletions test/cases/helper_cockroachdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4952e5d

Please sign in to comment.