Skip to content

Commit

Permalink
Avoid another segfault on 1.9.2 when running rake test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Sep 12, 2010
1 parent f4f03ed commit 8718419
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Rakefile
Expand Up @@ -16,10 +16,10 @@ end
if !ENV['NO_TEST_FIX'] and RUBY_VERSION == '1.9.2' and RUBY_PATCHLEVEL == 0 if !ENV['NO_TEST_FIX'] and RUBY_VERSION == '1.9.2' and RUBY_PATCHLEVEL == 0
# Avoids seg fault # Avoids seg fault
task(:test) do task(:test) do
files = Dir.glob('test/*_test.rb') second_run = %w[test/settings_test.rb test/rdoc_test.rb]
files.delete 'test/settings_test.rb' first_run = Dir.glob('test/*_test.rb') - second_run
sh "testrb #{files.join ' '}" sh "testrb #{first_run.join ' '}"
sh "testrb test/settings_test.rb" sh "testrb #{second_run.join ' '}"
end end
else else
Rake::TestTask.new(:test) do |t| Rake::TestTask.new(:test) do |t|
Expand Down

0 comments on commit 8718419

Please sign in to comment.