Force ourselves to test with Ruby 3.

Fix some issues that have been lurking.
This commit is contained in:
Mark VanderVoord
2023-01-09 14:16:30 -05:00
parent 019f88b4d9
commit 16d12416fd
5 changed files with 33 additions and 11 deletions
+5 -1
View File
@@ -137,7 +137,11 @@ class CMockGenerator
@file_writer.create_file(mock_project[:module_name] + '.c', @subdir) do |file, fullname|
blank_project = mock_project.clone
blank_project[:parsed_stuff] = { :functions => [] }
create_source_header_section(file, fullname, blank_project) if existing.empty?
if (existing.empty?)
create_source_header_section(file, fullname, blank_project)
else
file << existing << "\n"
end
mock_project[:parsed_stuff][:functions].each do |function|
create_function_skeleton(file, function, existing)
end