From: Jonathan Wakely Date: Tue, 16 May 2023 08:58:19 +0000 (+0100) Subject: libstdc++: Add assertion to debug_allocator test X-Git-Tag: basepoints/gcc-15~9232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf904527ab6de99106ae59c3957348006019c4cf;p=thirdparty%2Fgcc.git 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 --git a/libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc b/libstdc++-v3/testsuite/ext/debug_allocator/check_deallocate_null.cc index 1f0a9eb0b615..c5bcafb04e9f 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) {