Skip to content

Commit

Permalink
🐛Tweaked backtrace handling for test pass
Browse files Browse the repository at this point in the history
Backtrace handling needs work, but this should get us to passing crash test handling on Linux and Windows.
  • Loading branch information
mkarlesky committed May 14, 2024
1 parent bf2cfc9 commit 8eff55c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ceedling/debugger_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def gdb_output_collector(shell_result)
test_output = test_output.gsub("\n", @new_line_tag).gsub(':', @colon_tag)
test_output = "#{file_name}:#{line}:#{test_case_name}:FAIL: #{test_output}"
else
test_output = "ERR:1:#{test_case_name}:FAIL: Segmentation Fault"
test_output = "ERR:1:#{test_case_name}:FAIL:Test Executable Crashed"
end

# Mark test as failure
Expand Down
2 changes: 1 addition & 1 deletion lib/ceedling/generator_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_crash?(shell_result)
def log_test_results_crash(test_name, executable, shell_result)
runner = File.basename(executable)

notice = "Test executable #{test_name} [`#{runner}`] seems to have crashed"
notice = "Test executable `#{runner}` seems to have crashed"
@loginator.log( notice, Verbosity::ERRORS, LogLabels::CRASH )

log = false
Expand Down

0 comments on commit 8eff55c

Please sign in to comment.