From 65e40f0b265d13bde397db41303ac08d214a6559 Mon Sep 17 00:00:00 2001 From: Kristina Bessonova Date: Mon, 10 May 2021 20:25:46 +0200 Subject: [PATCH] [libcxx][test] Make string.modifiers/clear_and_shrink_db1.pass.cpp a regular mode test Turn this test into a normal mode as it contains well-formed code and checks for defined behavior. It still can be run in debug mode as of D100866. Differential Revision: https://reviews.llvm.org/D102192 --- .../{clear_and_shrink_db1.pass.cpp => clear_and_shrink.pass.cpp} | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) rename libcxx/test/libcxx/strings/basic.string/string.modifiers/{clear_and_shrink_db1.pass.cpp => clear_and_shrink.pass.cpp} (87%) diff --git a/libcxx/test/libcxx/strings/basic.string/string.modifiers/clear_and_shrink_db1.pass.cpp b/libcxx/test/libcxx/strings/basic.string/string.modifiers/clear_and_shrink.pass.cpp similarity index 87% rename from libcxx/test/libcxx/strings/basic.string/string.modifiers/clear_and_shrink_db1.pass.cpp rename to libcxx/test/libcxx/strings/basic.string/string.modifiers/clear_and_shrink.pass.cpp index b69ca7c..b3c0363 100644 --- a/libcxx/test/libcxx/strings/basic.string/string.modifiers/clear_and_shrink_db1.pass.cpp +++ b/libcxx/test/libcxx/strings/basic.string/string.modifiers/clear_and_shrink.pass.cpp @@ -10,11 +10,6 @@ // Call __clear_and_shrink() and ensure string invariants hold -// UNSUPPORTED: libcxx-no-debug-mode - -// ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1 -#define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0)) - #include #include @@ -39,4 +34,6 @@ int main(int, char**) assert(l.size() == 0); assert(l.capacity() < cap); } + + return 0; } -- 2.7.4