diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-17 08:15:44 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-17 09:00:07 +0300 |
commit | 784925324fd115c37bc98c5bbfe64c15f9966d74 (patch) | |
tree | f763f6eaacfcd4757d249977aaddfa4e9b2a355b /library/cpp/testing | |
parent | d6c75d9ec33559b29eb61a8f2e17cbca30fd5ae2 (diff) | |
download | ydb-784925324fd115c37bc98c5bbfe64c15f9966d74.tar.gz |
Y_FAIL->Y_ABORT at '^li'
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/testing')
-rw-r--r-- | library/cpp/testing/common/network.cpp | 8 | ||||
-rw-r--r-- | library/cpp/testing/unittest/junit.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/testing/common/network.cpp b/library/cpp/testing/common/network.cpp index a1f9f22e5a..9f018f69b7 100644 --- a/library/cpp/testing/common/network.cpp +++ b/library/cpp/testing/common/network.cpp @@ -25,7 +25,7 @@ namespace { #define Y_VERIFY_SYSERROR(expr) \ do { \ if (!(expr)) { \ - Y_FAIL(#expr ", errno=%d", LastSystemError()); \ + Y_ABORT(#expr ", errno=%d", LastSystemError()); \ } \ } while (false) @@ -137,7 +137,7 @@ namespace { } } - Y_FAIL("Cannot get free port!"); + Y_ABORT("Cannot get free port!"); } TVector<NTesting::TPortHolder> GetFreePortsRange(size_t count) const { @@ -167,7 +167,7 @@ namespace { ports.clear(); } } - Y_FAIL("Cannot get range of %zu ports!", count); + Y_ABORT("Cannot get range of %zu ports!", count); } NTesting::TPortHolder GetPort(ui16 port) const { @@ -176,7 +176,7 @@ namespace { if (ackport) { return NTesting::TPortHolder{std::move(ackport)}; } - Y_FAIL("Cannot acquire port %hu!", port); + Y_ABORT("Cannot acquire port %hu!", port); } return GetFreePort(); } diff --git a/library/cpp/testing/unittest/junit.cpp b/library/cpp/testing/unittest/junit.cpp index 44771ecd14..0c83625110 100644 --- a/library/cpp/testing/unittest/junit.cpp +++ b/library/cpp/testing/unittest/junit.cpp @@ -278,7 +278,7 @@ void TJUnitProcessor::MakeReportFileName() { if (ResultReportFileName.empty()) { Cerr << "Could not find a vacant file name to write report for path " << FileName << ", maximum number of reports: " << MaxReps << Endl; - Y_FAIL("Cannot write report"); + Y_ABORT("Cannot write report"); } } |