aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/context_ut.cpp
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /util/system/context_ut.cpp
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
downloadydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/context_ut.cpp')
-rw-r--r--util/system/context_ut.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/context_ut.cpp b/util/system/context_ut.cpp
index 96ea007958..45cb0249f7 100644
--- a/util/system/context_ut.cpp
+++ b/util/system/context_ut.cpp
@@ -3,7 +3,7 @@
#include <library/cpp/testing/unittest/registar.h>
#include <util/generic/deque.h>
-#include <util/generic/yexception.h>
+#include <util/generic/yexception.h>
Y_UNIT_TEST_SUITE(TestContext) {
template <class F>
@@ -26,17 +26,17 @@ Y_UNIT_TEST_SUITE(TestContext) {
auto& tw = w.emplace_back(&f);
- return {&tw, TArrayRef(tw.Buf, sizeof(tw.Buf))};
+ return {&tw, TArrayRef(tw.Buf, sizeof(tw.Buf))};
}
Y_UNIT_TEST(TestExceptionSafety) {
TExceptionSafeContext main;
TExceptionSafeContext* volatile nextPtr = nullptr;
- bool hasUncaught = true;
+ bool hasUncaught = true;
- auto func = [&]() {
- hasUncaught = UncaughtException();
+ auto func = [&]() {
+ hasUncaught = UncaughtException();
nextPtr->SwitchTo(&main);
};
@@ -66,6 +66,6 @@ Y_UNIT_TEST_SUITE(TestContext) {
}
UNIT_ASSERT(throwed);
- UNIT_ASSERT(!hasUncaught);
+ UNIT_ASSERT(!hasUncaught);
}
}