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: 205234 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp466438dyb; Fri, 23 Feb 2024 01:10:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVUY/EGKl7U/WDnnLa0Zbktoi6VJNgQZu6cjhK9F0fEkhz7zetzTd7lGqHVLriDOmbntb0Vxq2RkME33+sE2NCOs2dqHg== X-Google-Smtp-Source: AGHT+IGCAWdxvklWbEalhJj3e3XtkDRCxK5YseK/rh3flTS9CEl29coum/3nDu/b0T3gy5WeGITt X-Received: by 2002:a0c:c98d:0:b0:68f:b8e0:aa3b with SMTP id b13-20020a0cc98d000000b0068fb8e0aa3bmr1456422qvk.14.1708679406771; Fri, 23 Feb 2024 01:10:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708679406; cv=pass; d=google.com; s=arc-20160816; b=z8WXlB+JIq7bKVRsaVC/S7rBDjV7WWMulnJn9lQi4YYw5wGPgVBpkrjI6g86uO9/LR 2gJF7HntBNVjz+hlNYbX9Cpg/1169ykSAfdtvvjLlABUfGfrLD01gxmNREnYm9vtmQK4 f7FJ9Qf1Z/JmvDY61YWm8onE2TAeiDjAPrstVbBLATxahOchJtx7fATpC93Gokik9nQp ixCehDto0P2AoDVgMV6Q31z2gLyy5KLpz1zaN27EVeXQwp84lMIRYon9dKwEn3BSUEs9 P7Hch7WsiBRytBxrmR4aw2DlBIYhrHgdRgzJdVEc97risBigwzXh2ViXRTYcNXu6g/Ms /ntw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version:user-agent :message-id:date:subject:cc:to:from:dkim-signature:arc-filter :dmarc-filter:delivered-to; bh=A2F764DNcUZ6JG9vCYA9K9oZwvYO3YN8adMzN81+AK4=; fh=NXemEfxTRbZtBxUkxR2ehQUaYlcDfMdzPkO8MChVQE4=; b=cZ6VwLxKpGBIXFQEs+AbSlijXogn6I5b8I2xuZiVdTf8qJgJiubLDCP1kTChlaCc4D WcCdMED3oW1BZzO37tWIO69l+/wLCUlf4oW+OJULL84ETL7fDrvVHffEqWzWdjiW57Z3 cv3YvF5ewFtntU6yAJU4SN3qkMwo9WdlwoqUcB4guhqtmC6HPfg71rddsOPXtbrK3plw 8DpzAeS+Hn/6+IXRAbIcUnQFtngScVg+r+oqWRLV566dhsSBQcMu/ugfiuuIVz7yK8qJ +uEc30KrvjdwLI8T/xrADG4Yo7xbXUELr4DWcbTQToOGPv4yNJcDuee5f2vPn6spVJod aZbw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cebitec.uni-bielefeld.de header.s=20200306 header.b=mQF5lDGK; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id iu8-20020ad45cc8000000b0068f0803c9d8si5847292qvb.565.2024.02.23.01.10.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 01:10:06 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@cebitec.uni-bielefeld.de header.s=20200306 header.b=mQF5lDGK; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5A5843858291 for ; Fri, 23 Feb 2024 09:10:06 +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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791680217600683834 X-GMAIL-MSGID: 1791680217600683834 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" } } */