[libcxx-commits] [PATCH] D102192: [libcxx][test] Make string.modifiers/clear_and_shrink_db1.pass.cpp a regular mode test

Kristina Bessonova via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon May 10 13:25:55 PDT 2021


krisb created this revision.
krisb added a reviewer: Quuxplusone.
krisb requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

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 <https://reviews.llvm.org/D100866>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102192

Files:
  libcxx/test/libcxx/strings/basic.string/string.modifiers/clear_and_shrink.pass.cpp
  libcxx/test/libcxx/strings/basic.string/string.modifiers/clear_and_shrink_db1.pass.cpp


Index: libcxx/test/libcxx/strings/basic.string/string.modifiers/clear_and_shrink.pass.cpp
===================================================================
--- libcxx/test/libcxx/strings/basic.string/string.modifiers/clear_and_shrink.pass.cpp
+++ 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 <string>
 #include <cassert>
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102192.344182.patch
Type: text/x-patch
Size: 611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210510/08e40079/attachment.bin>


More information about the libcxx-commits mailing list