mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Disable the scripts.base.frameworks.logging.sqlite.simultaneous-writes test under TSan
Due to a bug (or intentional code) in SQLite, we disabled enabling the shared cache in sqlite3 if running under ThreadSanitizer (see cf1fefbe0b0a6163b389cc92b5a6878c7fc95f1f). Unfortunately, this has the side-effect of breaking the simultaneous-writes test because the shared cache is disabled. This is hopefully a temporary fix until SQLite fixes the issue on their side.
This commit is contained in:
parent
4dc20826fd
commit
0369ca01bc
3 changed files with 14 additions and 3 deletions
|
@ -276,13 +276,17 @@ extern const char* BRO_VERSION_FUNCTION();
|
|||
#define ZEEK_LSAN_DISABLE_SCOPE(x)
|
||||
#endif
|
||||
|
||||
// This part is dependent on calling configure with '--sanitizers=thread'
|
||||
// and not manually setting CFLAGS/CXXFLAGS to include --fsanitize=thread.
|
||||
// This is because some of the unit tests only work when built without
|
||||
// TSan, at least until SQLite opts to fix their problems with atomics.
|
||||
#if defined(__SANITIZE_THREAD__)
|
||||
#define ZEEK_TSAN
|
||||
#cmakedefine ZEEK_TSAN
|
||||
#endif
|
||||
|
||||
#if defined(__has_feature)
|
||||
#if __has_feature(thread_sanitizer)
|
||||
#define ZEEK_TSAN
|
||||
#cmakedefine ZEEK_TSAN
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue