Skip to content

Commit

Permalink
Merge branch 'topic/fix-callgrind-ir' into 'master'
Browse files Browse the repository at this point in the history
Fix callgrind Ir's reporting

See merge request eng/libadalang/libadalang!1789
  • Loading branch information
thvnx committed Sep 24, 2024
2 parents 6bfa946 + 439ecf0 commit 6ff81ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/drivers/base_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def data_file(suffix: str) -> str:
# Callgrind outputs the number of executed instructions in its
# trace. Search for the line containing "Collected".
ir = "0"
for line in result.splitlines():
for line in reversed(result.splitlines()):
if "Collected" in line:
ir = line.split()[-1]
break
Expand Down

0 comments on commit 6ff81ff

Please sign in to comment.