diff options
| author | Martin Hořeňovský | 2020-05-19 17:29:24 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-05-20 20:25:48 +0200 |
| commit | 458241cc90b71de453fb40bfeed9ccce20d45ee9 (patch) | |
| tree | e49787ee886cb6dad300874485b2e16a4a40d0a3 /src/catch2/catch_session.cpp | |
| parent | fa160cf3f251ae6d1672b58fb19eb1af8adb81c6 (diff) | |
| download | catch3-458241cc90b71de453fb40bfeed9ccce20d45ee9.tar.gz | |
Do not use shared_ptr<Config> when listing things
Diffstat (limited to 'src/catch2/catch_session.cpp')
| -rw-r--r-- | src/catch2/catch_session.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/catch2/catch_session.cpp b/src/catch2/catch_session.cpp index 66dd7186..c3bf898b 100644 --- a/src/catch2/catch_session.cpp +++ b/src/catch2/catch_session.cpp @@ -273,11 +273,14 @@ namespace Catch { applyFilenamesAsTags(); } + // Set up global config instance before we start calling into other functions + getCurrentMutableContext().setConfig(m_config); + // Create reporter(s) so we can route listings through them auto reporter = makeReporter(m_config.get()); // Handle list request - if (list(*reporter, m_config)) { + if (list(*reporter, *m_config)) { return 0; } |