From patchwork Fri Feb 23 09:08:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 86258 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5A2C23858296 for ; Fri, 23 Feb 2024 09:09:46 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtp.CeBiTec.Uni-Bielefeld.DE (smtp.CeBiTec.Uni-Bielefeld.DE [129.70.160.84]) by sourceware.org (Postfix) with ESMTPS id 2646D3858287 for ; Fri, 23 Feb 2024 09:08:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2646D3858287 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=CeBiTec.Uni-Bielefeld.DE Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cebitec.uni-bielefeld.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2646D3858287 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=129.70.160.84 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708679286; cv=none; b=Z9In5A1k3hLLY9qPOu+bjX/VfeeFYZKNuwDv9oWwqb+riVJOYfDEsxG0/QazCrW3RQcI5IxuTOQjhVHjFhyp3O+e8PVZdIHXg/2paotSAnP7p1HpaBjlSqnW6KD5Fb2rynbEN9V6E5Eet519Wgv9+VPdErJj3Bv6yNrfsTFku90= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708679286; c=relaxed/simple; bh=ixz7cc6IAMH1qx416vCn99BSfYZT8XKC96NJMBx+juA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vWkdrFTQS1uyNg+zrX+rb+RNmDuEaAZYMrKcDdCsi6LOFAPEOAAuM0IEhTlDebHFkQsR+6xyn+IJDuuQuB+Sbt+g2S9Pgi+eG+NtRKhujfHP+hYs01zZrV6reqPUQg691ptU3+5e+1SQZAf8GUOnFVFoa853uRQqgiEt5SAjWhk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from localhost (localhost [127.0.0.1]) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 08038B9714; Fri, 23 Feb 2024 10:08:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= cebitec.uni-bielefeld.de; h=content-type:content-type :mime-version:user-agent:message-id:date:date:subject:subject :from:from:received:received; s=20200306; t=1708679281; bh=ixz7c c6IAMH1qx416vCn99BSfYZT8XKC96NJMBx+juA=; b=mQF5lDGKxLOjAKhEcZ1zG 3Cspp/2znG/I86AmIW4N/9p+6m6WR064dK0p15X5LvFIglNztDvNn/oGtwx8MifN +7Z32M8J86QDenYYWU08SWXJnmJ0FEVshsk5/K5/+O6kt47TBsMRVeSt0IsBLuvn xVrkghAP/aS650Ze4Tza3qJfTM97HPhmGU8JtHGP0qeni25qfH/bXt/TqbmgBhPK SNFF+2IJSY2RFUAVeYGiAMDKLw/rzp1D1o76g+uv4iV/1jfYMwkteJBbpgMzxe1O 54g53T0fR3wNlZeGm9r2IQ+pbKmgwi+20bpRfcRW2h/YCGCZo3oIatCWZ12fxgsz g== X-Virus-Scanned: amavisd-new at cebitec.uni-bielefeld.de Received: from smtp.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (smtp.cebitec.uni-bielefeld.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id l2XG2j771sIn; Fri, 23 Feb 2024 10:08:01 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (p50855b30.dip0.t-ipconnect.de [80.133.91.48]) (Authenticated sender: ro) by smtp.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPSA id 9F83AB9786; Fri, 23 Feb 2024 10:08:01 +0100 (CET) From: Rainer Orth To: gcc-patches@gcc.gnu.org Cc: David Malcolm Subject: [COMMITTED] testsuite: plugin: Fix gcc.dg/plugin/crash-test-write-though-null-sarif.c on Solaris Date: Fri, 23 Feb 2024 10:08:01 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (usg-unix-v) MIME-Version: 1.0 X-Spam-Status: No, score=-3789.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org 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. Committed to trunk. Rainer # HG changeset patch # Parent ed942d3ea6c0b97b1812ed2c6563fd5873c8edca testsuite: plugin: Fix gcc.dg/plugin/crash-test-write-though-null-sarif.c on Solaris 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 --- 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 (voi { 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" } } */