mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Enable LeakSanitizer for unit tests run via doctest
This commit is contained in:
parent
66ca20b737
commit
a4089bc659
2 changed files with 2 additions and 0 deletions
|
@ -454,6 +454,7 @@ int main(int argc, char** argv)
|
|||
#else
|
||||
doctest::Context context;
|
||||
context.applyCommandLine(std::distance(first, separator), argv);
|
||||
ZEEK_LSAN_ENABLE();
|
||||
return context.run();
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -167,6 +167,7 @@ TEST_CASE("util get_escaped_string")
|
|||
{
|
||||
ODesc* d = get_escaped_string(nullptr, "a bcd\n", 6, false);
|
||||
CHECK(strcmp(d->Description(), "a\\x20bcd\\x0a") == 0);
|
||||
delete d;
|
||||
}
|
||||
|
||||
SUBCASE("provided ODesc")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue