[libcxx-commits] [libcxx] b8efe37 - [test][libcxx] Update deallocation after #90373 (#93145)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 23 08:32:22 PDT 2024


Author: Vitaly Buka
Date: 2024-05-23T17:32:18+02:00
New Revision: b8efe370497a6cfe83185ab7e57124ed5f5b125f

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

LOG: [test][libcxx] Update deallocation after #90373 (#93145)

Asan detects new/delete missmatch here after #90373.

Added: 
    

Modified: 
    libcxx/test/std/utilities/utility/mem.res/mem.res.global/new_delete_resource.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/utilities/utility/mem.res/mem.res.global/new_delete_resource.pass.cpp b/libcxx/test/std/utilities/utility/mem.res/mem.res.global/new_delete_resource.pass.cpp
index 68a82f6ce90b3..7b3107029d4d8 100644
--- a/libcxx/test/std/utilities/utility/mem.res/mem.res.global/new_delete_resource.pass.cpp
+++ b/libcxx/test/std/utilities/utility/mem.res/mem.res.global/new_delete_resource.pass.cpp
@@ -76,7 +76,7 @@ void test_allocate_deallocate() {
   ASSERT_WITH_LIBRARY_INTERNAL_ALLOCATIONS(globalMemCounter.checkOutstandingNewEq(1));
   ASSERT_WITH_LIBRARY_INTERNAL_ALLOCATIONS(globalMemCounter.checkLastNewSizeEq(50));
 
-  r1.deallocate(ret, 1);
+  r1.deallocate(ret, 50);
   assert(globalMemCounter.checkOutstandingNewEq(0));
   ASSERT_WITH_LIBRARY_INTERNAL_ALLOCATIONS(globalMemCounter.checkDeleteCalledEq(1));
 }


        


More information about the libcxx-commits mailing list