public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org
Subject: [gcc r14-907] libstdc++: Add assertion to debug_allocator test
Date: Tue, 16 May 2023 09:07:07 +0000 (GMT)	[thread overview]
Message-ID: <20230516090707.93FD5385773B@sourceware.org> (raw)

https://gcc.gnu.org/g:bf904527ab6de99106ae59c3957348006019c4cf

commit r14-907-gbf904527ab6de99106ae59c3957348006019c4cf
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Tue May 16 09:58:19 2023 +0100

    libstdc++: Add assertion to debug_allocator test
    
    libstdc++-v3/ChangeLog:
    
            * testsuite/ext/debug_allocator/check_deallocate_null.cc: Add
            assertion to ensure expected exception is throw.

Diff:
---
 libstdc++-v3/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<allocator_type>(); 
+      __gnu_test::check_deallocate_null<allocator_type>();
+      VERIFY(false);
     }
   catch (std::runtime_error& obj)
     {

                 reply	other threads:[~2023-05-16  9:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230516090707.93FD5385773B@sourceware.org \
    --to=redi@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    --cc=libstdc++-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).