diff options
author | Francois-Xavier Coudert <fxcoudert@gmail.com> | 2023-08-20 19:35:18 +0200 |
---|---|---|
committer | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2023-08-20 19:40:17 +0200 |
commit | a037992ca9831c8b8e8f6ac35569a5cca01e3680 (patch) | |
tree | 8555d2387e602dae1bbe842fcedfa9e8f1d4d1ff /gcc | |
parent | 791952ef4396da74370d28cc3200451080b5c65a (diff) | |
download | gcc-a037992ca9831c8b8e8f6ac35569a5cca01e3680.zip gcc-a037992ca9831c8b8e8f6ac35569a5cca01e3680.tar.gz gcc-a037992ca9831c8b8e8f6ac35569a5cca01e3680.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/plugin/crash-test-write-though-null-sarif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/plugin/crash-test-write-though-null-sarif.c b/gcc/testsuite/gcc.dg/plugin/crash-test-write-though-null-sarif.c index 83b38d2..513d66c 100644 --- a/gcc/testsuite/gcc.dg/plugin/crash-test-write-though-null-sarif.c +++ b/gcc/testsuite/gcc.dg/plugin/crash-test-write-though-null-sarif.c @@ -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" } } */ |