add assert_always() macro for release build assertions

This commit is contained in:
Konstantin Käfer
2015-06-26 19:37:11 +02:00
parent e66bd34bff
commit 45d0cbb4c7
3 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#include "../fixtures/util.hpp"
#include <mbgl/util/assert.hpp>
using namespace mbgl;
TEST(Assert, Always) {
EXPECT_DEATH(assert_always(true == false), "failed assertion `true == false'");
}