Skip to content

Commit 29e9f90

Browse files
committed
SCOV/instr.py: correctly detect warnings when running gnatcov
gnatcov warnings (and low warnings) are prefixed with '***'. Check for such patterns in gnatcov output when warnings_as_errors is true. Change-Id: I002a071479f6e7a06f059b6d5353948d21c8c36a TN: V615-017
1 parent a46f965 commit 29e9f90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testsuite/SCOV/instr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ def xcov_instrument(gprsw, covlevel, extra_args=[], dump_trigger="auto",
112112

113113
if warnings_as_errors:
114114
output = contents_of(out)
115+
115116
thistest.fail_if(
116-
"!!!" in output,
117+
"***" in output,
117118
f"Warnings detected in the output of 'gnatcov instrument':"
118119
f"\n{indent(output)}"
119120
)

0 commit comments

Comments
 (0)