public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-9146] testsuite: plugin: Fix gcc.dg/plugin/crash-test-write-though-null-sarif.c on Solaris
@ 2024-02-23  9:07 Rainer Orth
  0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2024-02-23  9:07 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6837c4503735d1bbcad0fb6e30cc139f3598f027

commit r14-9146-g6837c4503735d1bbcad0fb6e30cc139f3598f027
Author: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Date:   Fri Feb 23 10:06:41 2024 +0100

    testsuite: plugin: Fix gcc.dg/plugin/crash-test-write-though-null-sarif.c on Solaris
    
    gcc.dg/plugin/crash-test-write-though-null-sarif.c FAILs on Solaris:
    
    FAIL: gcc.dg/plugin/crash-test-write-though-null-sarif.c -fplugin=./crash_test_plugin.so  scan-sarif-file "text": "Segmentation fault
    
    Comparing the sarif files between Linux and Solaris reveals
    
    -                                                            "message": {"text": "Segmentation fault"},
    +                                                            "message": {"text": "Segmentation Fault"},
    
    This patch allows for both forms.
    
    Tested on i386-pc-solaris2.11, sparc-sun-solaris2.11, and
    x86_64-pc-linux-gnu.
    
    2024-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
    
            gcc/testsuite:
            * gcc.dg/plugin/crash-test-write-though-null-sarif.c
            (scan-sarif-file): Allow for "Segmentation Fault", too.

Diff:
---
 gcc/testsuite/gcc.dg/plugin/crash-test-write-though-null-sarif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 513d66c528d5..d5d824d75fc0 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 \[Ff\]ault" } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-23  9:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-23  9:07 [gcc r14-9146] testsuite: plugin: Fix gcc.dg/plugin/crash-test-write-though-null-sarif.c on Solaris Rainer Orth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).