Skip to content

Commit f20ce3a

Browse files
committed
Fix regexp in external annotation test
The external annotation test for C generates a warning containing a path component, which can become a backslash on Windows. This change ensures the expected message can match on both hosts.
1 parent 8114a3a commit f20ce3a

File tree

1 file changed

+1
-1
lines changed
  • testsuite/tests/ext_annotations/gen/c_ex/Nominal

1 file changed

+1
-1
lines changed

testsuite/tests/ext_annotations/gen/c_ex/Nominal/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
annot_file = generate_annotations(
3232
annotations,
3333
tolerate_messages=(
34-
"warning: Could not create an auto-relocating annotation for src/"
34+
r"warning: Could not create an auto-relocating annotation for src."
3535
"pkg.c:6:4 - 12:22, creating an absolute location annotation instead."
3636
),
3737
)

0 commit comments

Comments
 (0)