Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 5b46ea1

Browse files
[[ CppTests ]] Do not process the tests for new() allocation on Mac
new does not return NULL if the memory asked for is too big to be allocated. But it will crash when this memory block is accessed (with optimisation)
1 parent 3861b55 commit 5b46ea1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/test/test_new.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct VeryBig {
6464
};
6565

6666

67-
#ifdef __EMSCRIPTEN__
67+
#if defined(__EMSCRIPTEN__) || defined(__MAC__)
6868
TEST(new, DISABLED_new)
6969
#else
7070
TEST(new, new)
@@ -91,7 +91,7 @@ TEST(new, new)
9191
}
9292

9393

94-
#ifdef __EMSCRIPTEN__
94+
#if defined(__EMSCRIPTEN__) || defined(__MAC__)
9595
TEST(new, DISABLED_array)
9696
#else
9797
TEST(new, array)

0 commit comments

Comments
 (0)