Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mqbs_datastore.t: fix conditional compilation error #345

Merged
merged 12 commits into from
Jun 28, 2024
16 changes: 8 additions & 8 deletions src/groups/mqb/mqbs/mqbs_datastore.t.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ static void test2_defaultHashUniqueness()
const bsls::Types::Int64 k_NUM_KEYS = 1000000; // 1M
#elif defined(__has_feature)
// Avoid timeout under MemorySanitizer
const bsls::Types::Int64 k_NUM_GUIDS = __has_feature(memory_sanitizer)
? 1000000 // 1M
: 10000000; // 10M
const bsls::Types::Int64 k_NUM_KEYS = __has_feature(memory_sanitizer)
? 1000000 // 1M
: 10000000; // 10M
#elif defined(__SANITIZE_MEMORY__)
// GCC-supported macros for checking MSAN
const bsls::Types::Int64 k_NUM_GUIDS = 1000000; // 1M
const bsls::Types::Int64 k_NUM_KEYS = 1000000; // 1M
#else
const bsls::Types::Int64 k_NUM_KEYS = 10000000; // 10M
#endif
Expand Down Expand Up @@ -223,12 +223,12 @@ static void test3_customHashUniqueness()
const bsls::Types::Int64 k_NUM_KEYS = 5000000; // 5M
#elif defined(__has_feature)
// Avoid timeout under MemorySanitizer
const bsls::Types::Int64 k_NUM_GUIDS = __has_feature(memory_sanitizer)
? 5000000 // 5M
: 10000000; // 10M
const bsls::Types::Int64 k_NUM_KEYS = __has_feature(memory_sanitizer)
? 5000000 // 5M
: 10000000; // 10M
#elif defined(__SANITIZE_MEMORY__)
// GCC-supported macros for checking MSAN
const bsls::Types::Int64 k_NUM_GUIDS = 5000000; // 5M
const bsls::Types::Int64 k_NUM_KEYS = 5000000; // 5M
#else
const bsls::Types::Int64 k_NUM_KEYS = 10000000; // 10M
#endif
Expand Down
Loading