[gcc r14-907] libstdc++: Add assertion to debug_allocator test
Jonathan Wakely
redi@gcc.gnu.org
Tue May 16 09:07:07 GMT 2023
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)
{
More information about the Libstdc++-cvs
mailing list