summaryrefslogtreecommitdiffstats
path: root/util/system/shmat_ut.cpp
diff options
context:
space:
mode:
authorAnton Samokhvalov <[email protected]>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/system/shmat_ut.cpp
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
Restoring authorship annotation for Anton Samokhvalov <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/shmat_ut.cpp')
-rw-r--r--util/system/shmat_ut.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/util/system/shmat_ut.cpp b/util/system/shmat_ut.cpp
index 8940e304992..9d92243ae7f 100644
--- a/util/system/shmat_ut.cpp
+++ b/util/system/shmat_ut.cpp
@@ -1,17 +1,17 @@
-#include "shmat.h"
-
+#include "shmat.h"
+
#include <library/cpp/testing/unittest/registar.h>
-
+
Y_UNIT_TEST_SUITE(TTestSharedMemory) {
Y_UNIT_TEST(TestInProc) {
- TSharedMemory m1;
- TSharedMemory m2;
-
- UNIT_ASSERT(m1.Create(128));
- UNIT_ASSERT(m2.Open(m1.GetId(), m1.GetSize()));
-
- *(ui32*)m1.GetPtr() = 123;
-
- UNIT_ASSERT_VALUES_EQUAL(*(ui32*)m2.GetPtr(), 123);
- }
-}
+ TSharedMemory m1;
+ TSharedMemory m2;
+
+ UNIT_ASSERT(m1.Create(128));
+ UNIT_ASSERT(m2.Open(m1.GetId(), m1.GetSize()));
+
+ *(ui32*)m1.GetPtr() = 123;
+
+ UNIT_ASSERT_VALUES_EQUAL(*(ui32*)m2.GetPtr(), 123);
+ }
+}