Skip to content

Commit 3a6e9c7

Browse files
committed
Fixed future-ut build for GCC
1 parent f4bd193 commit 3a6e9c7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

library/cpp/testing/unittest/registar.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,12 +371,12 @@ public: \
371371

372372
#define UNIT_FAIL_IMPL(R, M) \
373373
do { \
374-
::NUnitTest::NPrivate::RaiseError(R, ::TStringBuilder() << R << " at " << __LOCATION__ << ", " << __PRETTY_FUNCTION__ << ": " << M, true); \
374+
::NUnitTest::NPrivate::RaiseError(R, ::TStringBuilder() << R << " at " << __LOCATION__ << ", " << std::string{__PRETTY_FUNCTION__} << ": " << M, true); \
375375
} while (false)
376376

377377
#define UNIT_FAIL_NONFATAL_IMPL(R, M) \
378378
do { \
379-
::NUnitTest::NPrivate::RaiseError(R, ::TStringBuilder() << R << " at " << __LOCATION__ << ", " << __PRETTY_FUNCTION__ << ": " << M, false); \
379+
::NUnitTest::NPrivate::RaiseError(R, ::TStringBuilder() << R << " at " << __LOCATION__ << ", " << std::string{__PRETTY_FUNCTION__} << ": " << M, false); \
380380
} while (false)
381381

382382
#define UNIT_FAIL(M) UNIT_FAIL_IMPL("forced failure", M)

library/cpp/threading/future/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ if (YDB_SDK_TESTS)
2525
future_mt_ut.cpp
2626
future_ut.cpp
2727
LINK_LIBRARIES
28+
yutil
2829
threading-future
2930
LABELS
3031
unit
@@ -34,6 +35,7 @@ if (YDB_SDK_TESTS)
3435
SOURCES
3536
ut_gtest/coroutine_traits_ut.cpp
3637
LINK_LIBRARIES
38+
yutil
3739
threading-future
3840
LABELS
3941
unit

0 commit comments

Comments
 (0)