diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/testing/unittest/registar.cpp | |
parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) | |
download | ydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing/unittest/registar.cpp')
-rw-r--r-- | library/cpp/testing/unittest/registar.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/testing/unittest/registar.cpp b/library/cpp/testing/unittest/registar.cpp index 7d40ff2c27..3679b768ed 100644 --- a/library/cpp/testing/unittest/registar.cpp +++ b/library/cpp/testing/unittest/registar.cpp @@ -35,7 +35,7 @@ currentTest; ::NUnitTest::TRaiseErrorHandler RaiseErrorHandler; void ::NUnitTest::NPrivate::RaiseError(const char* what, const TString& msg, bool fatalFailure) { - Y_VERIFY(UnittestThread, "%s in non-unittest thread with message:\n%s", what, msg.data()); + Y_VERIFY(UnittestThread, "%s in non-unittest thread with message:\n%s", what, msg.data()); Y_VERIFY(GetCurrentTest()); if (RaiseErrorHandler) { @@ -46,7 +46,7 @@ void ::NUnitTest::NPrivate::RaiseError(const char* what, const TString& msg, boo // Default handler TBackTrace bt; bt.Capture(); - GetCurrentTest()->AddError(msg.data(), bt.PrintToString()); + GetCurrentTest()->AddError(msg.data(), bt.PrintToString()); if (::NUnitTest::ContinueOnFail || !fatalFailure) { return; } @@ -414,7 +414,7 @@ NUnitTest::TTestBase::TCleanUp::~TCleanUp() { try { Base_->AfterTest(); } catch (...) { - Base_->AddError(CurrentExceptionMessage().data()); + Base_->AddError(CurrentExceptionMessage().data()); } ::NUnitTest::NPrivate::SetUnittestThread(false); ::NUnitTest::NPrivate::SetCurrentTest(nullptr); @@ -434,7 +434,7 @@ namespace { struct TCmp { template <class T> inline bool operator()(const T& l, const T& r) const noexcept { - return stricmp(Fix(l.Name().data()), Fix(r.Name().data())) < 0; + return stricmp(Fix(l.Name().data()), Fix(r.Name().data())) < 0; } static inline const char* Fix(const char* n) noexcept { |