Skip to content

Commit

Permalink
Accidentally using match? instead of match
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandervoord committed Apr 11, 2024
1 parent 1c48610 commit a1044b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ceedling/debugger_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def gdb_output_collector(shell_result)

# Concatenate test results from single test runs, which not crash
# to create proper output for further parser
m = test_output.match? /([\S]+):(\d+):([\S]+):(IGNORE|PASS|FAIL:)(.*)/
m = test_output.match /([\S]+):(\d+):([\S]+):(IGNORE|PASS|FAIL:)(.*)/
if m
test_output = "#{m[1]}:#{m[2]}:#{m[3]}:#{m[4]}#{m[5]}"
if test_output =~ /:PASS/
Expand All @@ -140,7 +140,7 @@ def gdb_output_collector(shell_result)
# <-- Parse Segmentatation Fault output section -->

# Collect file_name and line in which Segmentation faulted test is beginning
m = test_output.match? /#{test_case_name}\s*\(\)\sat\s(.*):(\d+)\n/
m = test_output.match /#{test_case_name}\s*\(\)\sat\s(.*):(\d+)\n/
if m
# Remove path from file_name
file_name = m[1].to_s.split('/').last.split('\\').last
Expand Down

0 comments on commit a1044b1

Please sign in to comment.