Skip to content

Commit

Permalink
- switch to old-school hash notation to be backwards compatible with …
Browse files Browse the repository at this point in the history
…older versions of ruby
  • Loading branch information
mvandervoord committed Jul 21, 2015
1 parent a1596c9 commit ba87d27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auto/generate_test_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ def find_includes(source)

#parse out includes
includes = {
local: source.scan(/^\s*#include\s+\"\s*(.+)\.[hH]\s*\"/).flatten,
system: source.scan(/^\s*#include\s+<\s*(.+)\s*>/).flatten.map { |inc| "<#{inc}>" }
:local => source.scan(/^\s*#include\s+\"\s*(.+)\.[hH]\s*\"/).flatten,
:system => source.scan(/^\s*#include\s+<\s*(.+)\s*>/).flatten.map { |inc| "<#{inc}>" }
}
return includes
end
Expand Down
6 changes: 6 additions & 0 deletions test/rakefile_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ def run_tests(test_files)
test_files.each do |test|
obj_list = []

if !$cfg['compiler']['aux_sources'].nil?
$cfg['compiler']['aux_sources'].each do |aux|
obj_list << compile(aux, test_defines)
end
end

# Detect dependencies and build required modules
extract_headers(test).each do |header|
# Compile corresponding source file if it exists
Expand Down

0 comments on commit ba87d27

Please sign in to comment.