diff options
| author | rp-1 <[email protected]> | 2025-10-03 14:27:04 +0300 |
|---|---|---|
| committer | rp-1 <[email protected]> | 2025-10-03 15:13:39 +0300 |
| commit | c1ffdb950536fb476f714704061d8714536db34a (patch) | |
| tree | 726f9fee445b2ffeb60c8a3475b09de5c6b4a7a8 /library/cpp/testing/unittest | |
| parent | 71330c140e37851e7d801ac0148e636346997036 (diff) | |
Move NYT::Initialize to separate "weak" hook
Move BEFORE_INIT hook to the beginning
commit_hash:9cbf1d95bf1cda4bcce0d3ab9207debcab65391b
Diffstat (limited to 'library/cpp/testing/unittest')
| -rw-r--r-- | library/cpp/testing/unittest/utmain.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/library/cpp/testing/unittest/utmain.cpp b/library/cpp/testing/unittest/utmain.cpp index 6ecfc3a64f3..113547bf855 100644 --- a/library/cpp/testing/unittest/utmain.cpp +++ b/library/cpp/testing/unittest/utmain.cpp @@ -9,6 +9,7 @@ #include <library/cpp/json/writer/json_value.h> #include <library/cpp/testing/common/env.h> #include <library/cpp/testing/hook/hook.h> +#include <library/cpp/testing/hook/yt_initialize_hook.h> #include <util/datetime/base.h> @@ -709,6 +710,8 @@ int NUnitTest::RunMain(int argc, char** argv) { Y_ABORT_UNLESS(!sigaction(SIGUSR2, &sa, nullptr)); } #endif + InitializeYt(argc, argv); + NTesting::THook::CallBeforeInit(); InitNetworkSubSystem(); Singleton<::NPrivate::TTestEnv>(); |
