Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/test_debug
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -e # Exit on error

make all
./run_herb_tests
NO_TIMEOUT=true bundle exec rake test
FORK_TESTS=true bundle exec rake test

echo "Tests successful!"
6 changes: 5 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@

require "active_support/core_ext/string/output_safety"

require_relative "fork_helper" if ENV["NO_TIMEOUT"].nil?
if ENV["FORK_TESTS"]
require_relative "fork_helper"
else
puts "TIP: If a segfault in the native C extension crashes the test runner, run with FORK_TESTS=true to isolate each test in a forked process and identify which test causes the crash."
end
require_relative "snapshot_utils"

Minitest::Spec::DSL.send(:alias_method, :test, :it)
Expand Down
Loading