From patchwork Tue May 16 09:07:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Wakely X-Patchwork-Id: 94550 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp282395vqo; Tue, 16 May 2023 02:08:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4GeegovyKSneVMl7GWQkQuZIw1M3gRk7R7/cteNckatG1PcmH4e5lfy5tdYn28eUzpv7tw X-Received: by 2002:a05:6402:1a27:b0:50d:a0fe:e673 with SMTP id be7-20020a0564021a2700b0050da0fee673mr24015960edb.32.1684228139501; Tue, 16 May 2023 02:08:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684228139; cv=none; d=google.com; s=arc-20160816; b=UCxU1WOFTe7k4awI9CMo2SX2qg4ukhH0gSh6kHba8scqz4lzVJtOMpR8bFm7m1YNxn ftAdCGoypnl4XvfYErOj07XW25lnxcc1wHbfMF41HlDZ7ng0/VNXUeb1fK2JXUELZYBJ Z+4QKVUpnJKl2Q1EjG5/AE008jWBYD2ayxztiEKsgRkp0BNnko1zTJMGhdJvvO+a8yyN RaTVVS6O8JTS8lqzZPVcFEs3c6ts7IdurUafoVuJk++VObY94yV2Dhp4Iij7efiEzlgW qeWFw+I9C+YGlZ2sFZl7Vi3i8td2NeFbLKB44bkoq063/ANa4/v3UN8XNEguJvDCUdqk i+ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:to :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=nw9df/k+gMQ0TsSQteJUXh96Ac44kYWoN5RjTRYl9+c=; b=OD33QNTU1FgQIgMOgzONxSET14fw6gga/LiCz2t77Gx9ql6vzBM/v+gq3xSRmZlrU6 aGXjW4a7GPRwxEKVnsKwrMi5Z4LZjPQR+LRsfALorU97uktGYqTkGbjQWi/T5F+sKqo9 pXXm4Hld1KBfUzgne3FX9JfffI3HyJjEniBy+bLf8ErAnt3zHYh7/PcaQ3nWE1hCcB6P FgovVndtq04Zj3bhthrQuGobdgMuC1CzRNJnSwMSn1OxNm6e8E/7QphbpZVRmAvDxCQr o2ACYcPHtjYcXqK9FUu1IvfdJ6WSc18WewIVXKMheLTKiVTGG2vBHK3pVWaOIUUo5ayh +cng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="qwnWc/br"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c9-20020aa7df09000000b0050c11023696si12905566edy.130.2023.05.16.02.08.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 May 2023 02:08:59 -0700 (PDT) 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=@gcc.gnu.org header.s=default header.b="qwnWc/br"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4BEA8385703D for ; Tue, 16 May 2023 09:08:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4BEA8385703D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684228113; bh=nw9df/k+gMQ0TsSQteJUXh96Ac44kYWoN5RjTRYl9+c=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=qwnWc/brquIWsEudqirg+XMyaGFNQdadF0ovmWvH4IOT1m5TJEInDxNieN+UpCyy6 trUK59grOkWQ7U+N+lZK2bP7Ihz8y9U8KOlnwhE/BJBtlSWzdWBGsrdTPgmjzbA1G0 idZCVLUZXepeTBqggqlLlPDvVC5c33f0I74wsry8= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 9A9763857359 for ; Tue, 16 May 2023 09:07:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9A9763857359 Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-15-eCahFBaiNU-Q8Ibd_Y7wZQ-1; Tue, 16 May 2023 05:07:20 -0400 X-MC-Unique: eCahFBaiNU-Q8Ibd_Y7wZQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 87ABC1C01B3D; Tue, 16 May 2023 09:07:20 +0000 (UTC) Received: from localhost (unknown [10.42.28.178]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5258A14171C0; Tue, 16 May 2023 09:07:20 +0000 (UTC) To: libstdc++@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: [committed] libstdc++: Add assertion to debug_allocator test Date: Tue, 16 May 2023 10:07:19 +0100 Message-Id: <20230516090719.1698299-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jonathan Wakely via Gcc-patches From: Jonathan Wakely Reply-To: Jonathan Wakely Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766041205582836705?= X-GMAIL-MSGID: =?utf-8?q?1766041205582836705?= Tested x86_64-linux. Pushed to trunk. -- >8 -- libstdc++-v3/ChangeLog: * testsuite/ext/debug_allocator/check_deallocate_null.cc: Add assertion to ensure expected exception is throw. --- .../testsuite/ext/debug_allocator/check_deallocate_null.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc b/libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc index 1f0a9eb0b61..c5bcafb04e9 100644 --- a/libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc +++ b/libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc @@ -31,7 +31,8 @@ int main() try { - __gnu_test::check_deallocate_null(); + __gnu_test::check_deallocate_null(); + VERIFY(false); } catch (std::runtime_error& obj) {