Skip to content

Commit bbdc622

Browse files
committed
Fix thread_ut (#164)
1 parent 461ed2b commit bbdc622

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

util/CMakeLists.txt

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,6 @@ if (YDB_SDK_TESTS)
221221
cpu_id_ut
222222
daemon_ut
223223
datetime_ut
224-
# TODO: fix direct_io_ut
225-
# TDirectIoErrorHandling::Constructor: did not throw any exception (expected TFileError)
226224
direct_io_ut
227225
env_ut
228226
error_ut
@@ -231,10 +229,6 @@ if (YDB_SDK_TESTS)
231229
filemap_ut
232230
file_ut
233231
flock_ut
234-
# TODO: fix fstat_ut
235-
# TestFileStat::SymlinkToExistingFileTest
236-
# TestFileStat::SymlinkToNonExistingFileTest
237-
# TestFileStat::SymlinkToFileThatCantExistTest
238232
fstat_ut
239233
fs_ut
240234
getpid_ut
@@ -259,14 +253,7 @@ if (YDB_SDK_TESTS)
259253
src_location_ut
260254
src_root_ut
261255
tempfile_ut
262-
# TODO: fix thread_ut
263-
# TSysThreadTest::TestSetGetThreadNameInChildThread
264-
thread_ut
265256
tls_ut
266-
# TODO: fix type_name_ut
267-
# TypeName::FromWellKnownTypes
268-
# TypeName::FromArcadiaTypes
269-
# TypeName::FromWellKnownValues
270257
type_name_ut
271258
types_ut
272259
# TODO: add library/cpp/testing/benchmark
@@ -277,10 +264,14 @@ if (YDB_SDK_TESTS)
277264
)
278265

279266
# This test checks if the executable file's name (the same name as the target)
280-
# is either "util-system-ut" or slightly different variations
267+
# is either "util-system-ut" or slightly different variations.
268+
# It also compares the executable file's name and the current thread name,
269+
# whose length can't be more than 16 bytes in Linux, so "util-system-ut" is
270+
# a suitable name.
281271
add_ydb_test(NAME util-system-ut
282272
SOURCES
283273
system/progname_ut.cpp
274+
system/thread_ut.cpp
284275
LINK_LIBRARIES
285276
yutil
286277
cpp-testing-unittest_main

0 commit comments

Comments
 (0)