mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Avoid another segfault on 1.9.2 when running rake test
.
This commit is contained in:
parent
f4f03edd41
commit
8718419b5b
1 changed files with 4 additions and 4 deletions
8
Rakefile
8
Rakefile
|
@ -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|
|
||||||
|
|
Loading…
Add table
Reference in a new issue