diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-11-10 17:33:14 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-11-10 17:36:21 +0300 |
commit | feb71f1d714887715fd9319c91edfe71eddb4a56 (patch) | |
tree | ccd842a60aab63b5aa8c04ae86fd2b130c13318c /intern/guardedalloc/tests | |
parent | 75a2db5d9742a46ec4662fe85765f27b6f5e0f95 (diff) |
Animation: Expand unit tests for `BKE_fcurve_active_keyframe_index()`
Expand unit test for `BKE_fcurve_active_keyframe_index()` to test edge
cases better.
This also introduces a new test macro `EXPECT_BLI_ASSERT()`, which can be
used to test that an assertion fails successfully.
No functional changes to actual Blender code.
Diffstat (limited to 'intern/guardedalloc/tests')
-rw-r--r-- | intern/guardedalloc/tests/guardedalloc_overflow_test.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/intern/guardedalloc/tests/guardedalloc_overflow_test.cc b/intern/guardedalloc/tests/guardedalloc_overflow_test.cc index e5754bc95ea..efbfc171fff 100644 --- a/intern/guardedalloc/tests/guardedalloc_overflow_test.cc +++ b/intern/guardedalloc/tests/guardedalloc_overflow_test.cc @@ -5,11 +5,6 @@ #include "MEM_guardedalloc.h" /* We expect to abort on integer overflow, to prevent possible exploits. */ -#ifdef _WIN32 -# define ABORT_PREDICATE ::testing::ExitedWithCode(3) -#else -# define ABORT_PREDICATE ::testing::KilledBySignal(SIGABRT) -#endif #if defined(__GNUC__) && !defined(__clang__) /* Disable since it's the purpose of this test. */ |