• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

realm / realm-core / 1787

28 Oct 2023 12:35PM UTC coverage: 91.591% (+0.009%) from 91.582%
1787

push

Evergreen

web-flow
Improve configurations for sanitized builds (#6911)

* Refactor sanitizer flags for different build types:

** Enable address sanitizer for msvc
** Allow to build with sanitizer for diffent optimized build (also Debug)
** Make RelASAN, RelTSAN, RelUSAN, RelUSAN just shortcuts for half-optimized builds

* Fix usage of moved object for fuzz tester
* Check asan/tsan on macos x64/arm64
* Check asan with msvc 2019
* Remove Jenkins sanitized builders replaced by evergreen configs
* Work-around stack-use-after-scope with msvc2019 and mpark
* Fix crash on check with staled ColKeys
* fix a buffer overrun in a test
* fix a race in async_open_realm test util
* Add some logger related test fixes
* Work around catch2 limmitation with not thread safe asserts and TSAN races
* Run multiprocesses tests under sanitizers
* add assert for an error reported by undefined sanitizer
* Workaround uv scheduler main thread only constraint for callbacks called from non main thread and requesting a realm

---------

Co-authored-by: James Stone <james.stone@mongodb.com>

94356 of 173648 branches covered (0.0%)

54 of 63 new or added lines in 15 files covered. (85.71%)

2202 existing lines in 52 files now uncovered.

230692 of 251872 relevant lines covered (91.59%)

7167285.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/realm/util/timestamp_logger.cpp
1
#include <utility>
2
#include <iostream>
3

4
#include <realm/util/timestamp_logger.hpp>
5

6
using namespace realm;
7
using util::TimestampStderrLogger;
8

9

10
TimestampStderrLogger::TimestampStderrLogger(Config config, Level level)
11
    : Logger(level)
12
    , m_formatter{std::move(config)}
13
{
×
14
}
×
15

16

17
void TimestampStderrLogger::do_log(Logger::Level level, const std::string& message)
18
{
×
19
    auto now = std::chrono::system_clock::now();
×
NEW
20
    static Mutex mutex;
×
NEW
21
    LockGuard l(mutex);
×
22
    std::cerr << m_formatter.format(now) << ": " << get_level_prefix(level) << message << '\n'; // Throws
×
23
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc