[libcxx-commits] [PATCH] D98006: Fixed test

kamlesh kumar via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 4 22:25:48 PST 2021


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

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98006

Files:
  libcxx/test/std/containers/sequences/list/list.modifiers/insert_iter_size_value.pass.cpp


Index: libcxx/test/std/containers/sequences/list/list.modifiers/insert_iter_size_value.pass.cpp
===================================================================
--- libcxx/test/std/containers/sequences/list/list.modifiers/insert_iter_size_value.pass.cpp
+++ libcxx/test/std/containers/sequences/list/list.modifiers/insert_iter_size_value.pass.cpp
@@ -28,7 +28,7 @@
     typename List::iterator i = l1.insert(next(l1.cbegin()), 5, 4);
     assert(i == next(l1.begin()));
     assert(l1 == List(a2, a2+8));
-#ifndef TEST_HAS_NO_EXCEPTIONS
+#if !defined(TEST_HAS_NO_EXCEPTIONS) && !defined(DISABLE_NEW_COUNT)
     globalMemCounter.throw_after = 4;
     int save_count = globalMemCounter.outstanding_new;
     try


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98006.328390.patch
Type: text/x-patch
Size: 713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210305/71170c65/attachment.bin>


More information about the libcxx-commits mailing list