diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2020-01-12 10:31:07 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-05-11 20:13:54 +0100 |
| commit | a95096ba5f72db71422ffd9ea6630160387b97c0 (patch) | |
| tree | e081be31e5393d7db534b30f18af8b6fe5065344 /tests | |
| parent | abe2efe1ff84d423ef5f104b1e95e9ef66442c0f (diff) | |
| download | libgit2-a95096ba5f72db71422ffd9ea6630160387b97c0.tar.gz | |
assert: optionally fall-back to assert(3)
Fall back to the system assert(3) in debug builds, which may aide
in debugging.
"Safe" assertions can be enabled in debug builds by setting
GIT_ASSERT_HARD=0. Similarly, hard assertions can be enabled in
release builds by setting GIT_ASSERT_HARD to nonzero.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/core/assert.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/core/assert.c b/tests/core/assert.c index 8fd709367..5260b268e 100644 --- a/tests/core/assert.c +++ b/tests/core/assert.c @@ -1,3 +1,5 @@ +#define GIT_ASSERT_HARD 0 + #include "clar_libgit2.h" static const char *hello_world = "hello, world"; |
