diff options
author | thegeorg <thegeorg@yandex-team.com> | 2025-01-03 19:30:22 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.com> | 2025-01-03 19:50:38 +0300 |
commit | 331e295515aec415005802efd69cd9d1028a5e00 (patch) | |
tree | f3b8e4045a794a57c5d005e120c22d17b43eb1ac /util/generic/yexception_ut.cpp | |
parent | 8a6cb7356d2687d9ebbf14009e557105669ebd91 (diff) | |
download | ydb-331e295515aec415005802efd69cd9d1028a5e00.tar.gz |
Do not yield GLOBAL define regarding current C++ runtime
This codesearch query yields all the results (i. e. only `yexception_ut.cpp` depends on this define):
HIDDEN_URL
commit_hash:9cac855ba71451e3691fc514a5a423173c3a8aae
Diffstat (limited to 'util/generic/yexception_ut.cpp')
-rw-r--r-- | util/generic/yexception_ut.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/generic/yexception_ut.cpp b/util/generic/yexception_ut.cpp index b2ca4b1fed..ad4b5578b0 100644 --- a/util/generic/yexception_ut.cpp +++ b/util/generic/yexception_ut.cpp @@ -387,7 +387,8 @@ private: try { throw int(1); } catch (...) { -#if defined(LIBCXX_BUILDING_LIBCXXRT) || defined(LIBCXX_BUILDING_LIBGCC) +#if defined(_linux_) || defined(_darwin_) + // On Linux and macOS we use libcxxrt which handles throw integers properly UNIT_ASSERT_VALUES_EQUAL(CurrentExceptionTypeName(), "int"); #else UNIT_ASSERT_VALUES_EQUAL(CurrentExceptionTypeName(), "unknown type"); |