aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/unittest
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-15 18:20:58 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-15 18:20:58 +0300
commit2d9dc043c662c86787d835ec189b2c9da1578071 (patch)
treeae60a51d0f26ce3f05f64e44626f467b583199d8 /library/cpp/testing/unittest
parent457c97d555bfbe3f9351eb22a932b9965e6816a6 (diff)
downloadydb-2d9dc043c662c86787d835ec189b2c9da1578071.tar.gz
intermediate changes
ref:f793e47d98757e96c541d6d7dd53f8838e72cf3f
Diffstat (limited to 'library/cpp/testing/unittest')
-rw-r--r--library/cpp/testing/unittest/registar.cpp3
-rw-r--r--library/cpp/testing/unittest/registar.h1
-rw-r--r--library/cpp/testing/unittest/utmain.cpp7
3 files changed, 1 insertions, 10 deletions
diff --git a/library/cpp/testing/unittest/registar.cpp b/library/cpp/testing/unittest/registar.cpp
index 3679b768ed4..93771145757 100644
--- a/library/cpp/testing/unittest/registar.cpp
+++ b/library/cpp/testing/unittest/registar.cpp
@@ -13,7 +13,6 @@
#include <util/string/cast.h>
bool NUnitTest::ShouldColorizeDiff = true;
-bool NUnitTest::ContinueOnFail = false;
TString NUnitTest::RandomString(size_t len, ui32 seed) {
TReallyFastRng32 rand(seed);
@@ -47,7 +46,7 @@ void ::NUnitTest::NPrivate::RaiseError(const char* what, const TString& msg, boo
TBackTrace bt;
bt.Capture();
GetCurrentTest()->AddError(msg.data(), bt.PrintToString());
- if (::NUnitTest::ContinueOnFail || !fatalFailure) {
+ if (!fatalFailure) {
return;
}
throw TAssertException();
diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h
index 44517a00924..231c2efe9c0 100644
--- a/library/cpp/testing/unittest/registar.h
+++ b/library/cpp/testing/unittest/registar.h
@@ -40,7 +40,6 @@ namespace NUnitTest {
}
extern bool ShouldColorizeDiff;
- extern bool ContinueOnFail;
TString ColoredDiff(TStringBuf s1, TStringBuf s2, const TString& delims = TString(), bool reverse = false);
TString GetFormatTag(const char* name);
TString GetResetTag();
diff --git a/library/cpp/testing/unittest/utmain.cpp b/library/cpp/testing/unittest/utmain.cpp
index 305bc6b40fc..76945ed1beb 100644
--- a/library/cpp/testing/unittest/utmain.cpp
+++ b/library/cpp/testing/unittest/utmain.cpp
@@ -245,10 +245,6 @@ public:
ShowFails = show;
}
- void SetContinueOnFail(bool val) {
- NUnitTest::ContinueOnFail = val;
- }
-
inline void BeQuiet() {
SetPrintTimes(false);
SetPrintBeforeSuite(false);
@@ -617,7 +613,6 @@ static int DoUsage(const char* progname) {
<< " --print-before-suite print each test suite name before running it\n"
<< " --show-fails print a list of all failed tests at the end\n"
<< " --dont-show-fails do not print a list of all failed tests at the end\n"
- << " --continue-on-fail print a message and continue running test suite instead of break\n"
<< " --print-times print wall clock duration of each test\n"
<< " --fork-tests run each test in a separate process\n"
<< " --trace-path path to the trace file to be generated\n"
@@ -697,8 +692,6 @@ int NUnitTest::RunMain(int argc, char** argv) {
processor.SetShowFails(true);
} else if (strcmp(name, "--dont-show-fails") == 0) {
processor.SetShowFails(false);
- } else if (strcmp(name, "--continue-on-fail") == 0) {
- processor.SetContinueOnFail(true);
} else if (strcmp(name, "--print-times") == 0) {
processor.SetPrintTimes(true);
} else if (strcmp(name, "--from") == 0) {