diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-16 12:44:45 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-16 12:44:45 +0300 |
commit | f2bea43f564daffc657e2b30cad3b044bd2cb7c7 (patch) | |
tree | 647aa2172bcfc7fc90c5d5aa7cf295727406c1de /library/cpp | |
parent | 299d83114f32daf6465fe44e247026c9e1db3cf0 (diff) | |
download | ydb-f2bea43f564daffc657e2b30cad3b044bd2cb7c7.tar.gz |
intermediate changes
ref:d483e9e2fc8bfef633904bd3103470d44e8d0eb4
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/testing/unittest/registar.h | 6 | ||||
-rw-r--r-- | library/cpp/yt/misc/CMakeLists.txt | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h index 231c2efe9c..4d5352e548 100644 --- a/library/cpp/testing/unittest/registar.h +++ b/library/cpp/testing/unittest/registar.h @@ -201,6 +201,10 @@ namespace NUnitTest { virtual void TearDown(); + virtual void GlobalSuiteSetUp() {} + + virtual void GlobalSuiteTearDown() {} + void AddError(const char* msg, const TString& backtrace = TString(), TTestContext* context = nullptr); void AddError(const char* msg, TTestContext* context); @@ -947,6 +951,7 @@ public: \ \ virtual void Execute() { \ this->AtStart(); \ + this->GlobalSuiteSetUp(); \ for (TTests::iterator it = Tests().begin(), ie = Tests().end(); it != ie; ++it) { \ const auto i = (*it)(); \ if (!this->CheckAccessTest(i->Name_)) { \ @@ -974,6 +979,7 @@ public: \ } \ this->Finish(i->Name_, &context); \ } \ + this->GlobalSuiteTearDown(); \ this->AtEnd(); \ } \ }; \ diff --git a/library/cpp/yt/misc/CMakeLists.txt b/library/cpp/yt/misc/CMakeLists.txt index c3eb8aa025..502ac788e8 100644 --- a/library/cpp/yt/misc/CMakeLists.txt +++ b/library/cpp/yt/misc/CMakeLists.txt @@ -11,7 +11,6 @@ add_library(cpp-yt-misc) target_link_libraries(cpp-yt-misc PUBLIC contrib-libs-cxxsupp yutil - contrib-libs-farmhash cpp-yt-exception ) target_sources(cpp-yt-misc PRIVATE |