aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/unaligned_mem_ut.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/system/unaligned_mem_ut.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/unaligned_mem_ut.cpp')
-rw-r--r--util/system/unaligned_mem_ut.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/system/unaligned_mem_ut.cpp b/util/system/unaligned_mem_ut.cpp
index 9de3f3e931..fddf98f8de 100644
--- a/util/system/unaligned_mem_ut.cpp
+++ b/util/system/unaligned_mem_ut.cpp
@@ -29,8 +29,8 @@ namespace {
}
#endif
-Y_UNIT_TEST_SUITE(UnalignedMem) {
- Y_UNIT_TEST(TestReadWrite) {
+Y_UNIT_TEST_SUITE(UnalignedMem) {
+ Y_UNIT_TEST(TestReadWrite) {
alignas(ui64) char buf[100];
WriteUnaligned<ui16>(buf + 1, (ui16)1);
@@ -42,7 +42,7 @@ Y_UNIT_TEST_SUITE(UnalignedMem) {
UNIT_ASSERT_VALUES_EQUAL(ReadUnaligned<ui64>(buf + 1 + 2 + 4), 3);
}
- Y_UNIT_TEST(TestReadWriteRuntime) {
+ Y_UNIT_TEST(TestReadWriteRuntime) {
// Unlike the test above, this test avoids compile-time execution by a smart compiler.
// It is required to catch the SIGSEGV in case compiler emits an alignment-sensitive instruction.
@@ -69,14 +69,14 @@ Y_UNIT_TEST_SUITE(UnalignedMem) {
UNIT_ASSERT_VALUES_EQUAL(val3, 3);
}
#ifdef Y_HAVE_INT128
- Y_UNIT_TEST(TestReadWrite128) {
+ Y_UNIT_TEST(TestReadWrite128) {
alignas(TUInt128) char buf[100] = {0};
WriteUnaligned<TUInt128>(buf + 1, TUInt128::Max());
auto val = ReadUnaligned<TUInt128>(buf + 1);
UNIT_ASSERT(val == TUInt128::Max());
}
- Y_UNIT_TEST(TestReadWriteRuntime128) {
+ Y_UNIT_TEST(TestReadWriteRuntime128) {
// Unlike the test above, this test avoids compile-time execution by a smart compiler.
// It is required to catch the SIGSEGV in case compiler emits an alignment-sensitive instruction.