diff options
author | bulatman <bulatman@yandex-team.ru> | 2022-02-10 16:45:50 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:50 +0300 |
commit | 2f6ca198245aeffd5e2d82b65927c2465b68b4f5 (patch) | |
tree | 9142afc54d335ea52910662635b898e79e192e49 /library/cpp/testing/unittest/utmain.cpp | |
parent | 6560e4993b14d193f8c879e33a3de5e5eba6e21d (diff) | |
download | ydb-2f6ca198245aeffd5e2d82b65927c2465b68b4f5.tar.gz |
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/utmain.cpp')
-rw-r--r-- | library/cpp/testing/unittest/utmain.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/testing/unittest/utmain.cpp b/library/cpp/testing/unittest/utmain.cpp index a5b74ee801..305bc6b40f 100644 --- a/library/cpp/testing/unittest/utmain.cpp +++ b/library/cpp/testing/unittest/utmain.cpp @@ -7,13 +7,13 @@ #include <library/cpp/json/writer/json.h> #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/hook.h> #include <util/datetime/base.h> #include <util/generic/hash.h> #include <util/generic/hash_set.h> -#include <util/generic/scope.h> +#include <util/generic/scope.h> #include <util/generic/string.h> #include <util/generic/yexception.h> @@ -647,7 +647,7 @@ int NUnitTest::RunMain(int argc, char** argv) { Y_VERIFY(!sigaction(SIGUSR2, &sa, nullptr)); } #endif - NTesting::THook::CallBeforeInit(); + NTesting::THook::CallBeforeInit(); InitNetworkSubSystem(); try { @@ -658,11 +658,11 @@ int NUnitTest::RunMain(int argc, char** argv) { #ifndef UT_SKIP_EXCEPTIONS try { #endif - NTesting::THook::CallBeforeRun(); - Y_DEFER { NTesting::THook::CallAfterRun(); }; - + NTesting::THook::CallBeforeRun(); + Y_DEFER { NTesting::THook::CallAfterRun(); }; + NPlugin::OnStartMain(argc, argv); - Y_DEFER { NPlugin::OnStopMain(argc, argv); }; + Y_DEFER { NPlugin::OnStopMain(argc, argv); }; TColoredProcessor processor(GetExecPath()); IOutputStream* listStream = &Cout; @@ -749,18 +749,18 @@ int NUnitTest::RunMain(int argc, char** argv) { TTestFactory::Instance().SetProcessor(&processor); - unsigned ret; + unsigned ret; for (;;) { - ret = TTestFactory::Instance().Execute(); + ret = TTestFactory::Instance().Execute(); if (!processor.GetIsForked() && ret && processor.GetPrintSummary()) { Cerr << "SOME TESTS FAILED!!!!" << Endl; } - if (0 != ret || !processor.IsLoop()) { - break; + if (0 != ret || !processor.IsLoop()) { + break; } } - return ret; + return ret; #ifndef UT_SKIP_EXCEPTIONS } catch (...) { Cerr << "caught exception in test suite(" << CurrentExceptionMessage() << ")" << Endl; |