Skip to content

Commit

Permalink
🚸 Added segfault logging message
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarlesky committed May 4, 2024
1 parent 9a613d1 commit f9d5e02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ceedling/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def generate_test_results(tool:, context:, test_name:, test_filepath:, executabl

# Handle SegFaults
if shell_result[:output] =~ /\s*Segmentation\sfault.*/i
@loginator.log( "Test executable #{test_name} encountered a segmentation fault", Verbosity::OBNOXIOUS, LogLabels::SEGFAULT )
if @configurator.project_config_hash[:project_use_backtrace] && @configurator.project_config_hash[:test_runner_cmdline_args]
# If we have the options and tools to learn more, dig into the details
shell_result = @debugger_utils.gdb_output_collector(shell_result)
Expand Down

0 comments on commit f9d5e02

Please sign in to comment.