mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
GH-1208: Use Dictionary validity assertions only during CI
This commit is contained in:
parent
3f25214914
commit
3c4de51f40
2 changed files with 2 additions and 1 deletions
|
@ -161,6 +161,7 @@ sanitizer_task:
|
||||||
<< : *CI_TEMPLATE
|
<< : *CI_TEMPLATE
|
||||||
test_fuzzers_script: ./ci/test-fuzzers.sh
|
test_fuzzers_script: ./ci/test-fuzzers.sh
|
||||||
env:
|
env:
|
||||||
|
CXXFLAGS: -DZEEK_DICT_DEBUG
|
||||||
ZEEK_CI_CONFIGURE_FLAGS: *SANITIZER_CONFIG
|
ZEEK_CI_CONFIGURE_FLAGS: *SANITIZER_CONFIG
|
||||||
ZEEK_TAILORED_UB_CHECKS: 1
|
ZEEK_TAILORED_UB_CHECKS: 1
|
||||||
UBSAN_OPTIONS: print_stacktrace=1
|
UBSAN_OPTIONS: print_stacktrace=1
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#include "3rdparty/doctest.h"
|
#include "3rdparty/doctest.h"
|
||||||
|
|
||||||
#ifdef DEBUG
|
#if defined(DEBUG) && defined(ZEEK_DICT_DEBUG)
|
||||||
#define ASSERT_VALID(o) o->AssertValid()
|
#define ASSERT_VALID(o) o->AssertValid()
|
||||||
#else
|
#else
|
||||||
#define ASSERT_VALID(o)
|
#define ASSERT_VALID(o)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue