Testsuite, plugin: make testcase pattern more flexible
On Darwin, the message recorded in the sarif file contains: "message": {"text": "Segmentation fault: 11"} which is different from, e.g., linux: "message": {"text": "Segmentation fault"} Adjusting the testcase pattern to be a little more flexible. gcc/testsuite/ChangeLog: * gcc.dg/plugin/crash-test-write-though-null-sarif.c: Update expected pattern.
This commit is contained in:
parent
791952ef43
commit
a037992ca9
1 changed files with 1 additions and 1 deletions
|
@ -61,4 +61,4 @@ void test_inject_write_through_null (void)
|
|||
{ dg-final { scan-sarif-file "\"startColumn\": 3" } }
|
||||
{ dg-final { scan-sarif-file "\"endColumn\": 31" } }
|
||||
{ dg-final { scan-sarif-file "\"message\": " } }
|
||||
{ dg-final { scan-sarif-file "\"text\": \"Segmentation fault\"" } } */
|
||||
{ dg-final { scan-sarif-file "\"text\": \"Segmentation fault" } } */
|
||||
|
|
Loading…
Add table
Reference in a new issue