Skip to content

Commit

Permalink
Fixed assembly file handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarlesky committed Jan 19, 2024
1 parent 4ad6c26 commit 53e7265
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/gcov/lib/gcov.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ def generate_coverage_object_file(test, source, object)
tool = TOOLS_TEST_COMPILER
msg = nil

# Handle assembly file that comes through
if File.extname(source) == EXTENSION_ASSEMBLY
tool = TOOLS_TEST_ASSEMBLER
# If a source file (not unity, mocks, etc.) is to be compiled use code coverage compiler
if @ceedling[:configurator].collection_all_source.to_a.include?(source)
elsif @ceedling[:configurator].collection_all_source.include?(source)
tool = TOOLS_GCOV_COMPILER
msg = "Compiling #{File.basename(source)} with coverage..."
end
Expand Down Expand Up @@ -157,7 +160,7 @@ def console_coverage_summaries()
)

# Do not raise an exception if `gcov` terminates with a non-zero exit code, just note it and move on.
# Recent releases of `gcov` has become more strict and vocal about errors and exit codes.
# Recent releases of `gcov` have become more strict and vocal about errors and exit codes.
command[:options][:boom] = false

# Run the gcov tool and collect the raw coverage report
Expand Down

0 comments on commit 53e7265

Please sign in to comment.