Skip to content

Commit 706c646

Browse files
committed
Disable memory leak check on OSX
1 parent 0ccec28 commit 706c646

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/runtime_tests.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ std::size_t num_allocations = 0u;
1010
std::size_t double_delete = 0u;
1111
bool memory_tracking = false;
1212

13+
// NB: getting weird errors on MacOS when doing this
14+
#if !defined(__APPLE__)
1315
void* operator new(size_t size)
1416
{
1517
if (memory_tracking && num_allocations == max_allocations) {
@@ -49,6 +51,7 @@ void operator delete(void* p) noexcept
4951

5052
std::free(p);
5153
}
54+
#endif
5255

5356
struct memory_tracker {
5457
std::size_t initial_allocations;

0 commit comments

Comments
 (0)