diff options
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"); } } |