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:
Francois-Xavier Coudert 2023-08-20 19:35:18 +02:00 committed by Francois-Xavier Coudert
parent 791952ef43
commit a037992ca9

View file

@ -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" } } */