Skip to content

Commit e3f91c8

Browse files
committed
Fix progname_ut test (#164)
1 parent 57cfadc commit e3f91c8

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

util/CMakeLists.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,6 @@ if (YDB_SDK_TESTS)
249249
nice_ut
250250
pipe_ut
251251
platform_ut
252-
# TODO: fix progname_ut
253-
# TProgramNameTest::TestIt
254-
progname_ut
255252
rusage_ut
256253
rwlock_ut
257254
sanitizers_ut
@@ -282,6 +279,18 @@ if (YDB_SDK_TESTS)
282279
yassert_ut
283280
)
284281

282+
# This test checks if the executable file's name (the same name as the target)
283+
# is either "util-system-ut" or slightly different variations
284+
add_ydb_test(NAME util-system-ut
285+
SOURCES
286+
system/progname_ut.cpp
287+
LINK_LIBRARIES
288+
yutil
289+
cpp-testing-unittest_main
290+
LABELS
291+
unit
292+
)
293+
285294
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
286295
add_ydb_test(NAME util-system-fs_win_ut
287296
SOURCES

0 commit comments

Comments
 (0)