[libcxx-commits] [libcxx] 09b5145 - [NFC][libc++] Use TEST_HAS_NO_EXCEPTIONS in tests.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sat Oct 2 04:48:11 PDT 2021


Author: Mark de Wever
Date: 2021-10-02T13:47:27+02:00
New Revision: 09b51451da451450c6799d76168afdbb8dd8fca5

URL: https://github.com/llvm/llvm-project/commit/09b51451da451450c6799d76168afdbb8dd8fca5
DIFF: https://github.com/llvm/llvm-project/commit/09b51451da451450c6799d76168afdbb8dd8fca5.diff

LOG: [NFC][libc++] Use TEST_HAS_NO_EXCEPTIONS in tests.

Added: 
    

Modified: 
    libcxx/test/std/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp b/libcxx/test/std/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp
index ec19d6f137911..feb706653ca83 100644
--- a/libcxx/test/std/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp
+++ b/libcxx/test/std/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp
@@ -37,7 +37,7 @@ int main(int, char**)
         assert(v.size() == 101);
         assert(is_contiguous_container_asan_correct(v));
     }
-#ifndef _LIBCPP_NO_EXCEPTIONS
+#ifndef TEST_HAS_NO_EXCEPTIONS
     {
         std::vector<int, limited_allocator<int, 400> > v(100);
         v.push_back(1);


        


More information about the libcxx-commits mailing list