diff options
| author | imeln <[email protected]> | 2022-02-10 16:50:05 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:05 +0300 | 
| commit | a8edace702b9ef73e7589895cd0637c7431d6158 (patch) | |
| tree | 589fcae936ce8873c99b07f10d54dd928ce75d53 /library/cpp/testing/unittest | |
| parent | 3fe61ec91d7f3e5cd747dc156b811a1bac4d5356 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/unittest')
| -rw-r--r-- | library/cpp/testing/unittest/registar.cpp | 2 | ||||
| -rw-r--r-- | library/cpp/testing/unittest/registar.h | 2 | ||||
| -rw-r--r-- | library/cpp/testing/unittest/utmain.cpp | 14 | 
3 files changed, 9 insertions, 9 deletions
| diff --git a/library/cpp/testing/unittest/registar.cpp b/library/cpp/testing/unittest/registar.cpp index 3679b768ed4..8966b60ac7e 100644 --- a/library/cpp/testing/unittest/registar.cpp +++ b/library/cpp/testing/unittest/registar.cpp @@ -13,7 +13,7 @@  #include <util/string/cast.h>  bool NUnitTest::ShouldColorizeDiff = true; -bool NUnitTest::ContinueOnFail = false; +bool NUnitTest::ContinueOnFail = false;   TString NUnitTest::RandomString(size_t len, ui32 seed) {      TReallyFastRng32 rand(seed); diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h index 44517a00924..646744ce2bb 100644 --- a/library/cpp/testing/unittest/registar.h +++ b/library/cpp/testing/unittest/registar.h @@ -40,7 +40,7 @@ namespace NUnitTest {      }      extern bool ShouldColorizeDiff; -    extern bool ContinueOnFail; +    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..f965788a09d 100644 --- a/library/cpp/testing/unittest/utmain.cpp +++ b/library/cpp/testing/unittest/utmain.cpp @@ -245,10 +245,10 @@ public:          ShowFails = show;      } -    void SetContinueOnFail(bool val) { -        NUnitTest::ContinueOnFail = val; -    } - +    void SetContinueOnFail(bool val) {  +        NUnitTest::ContinueOnFail = val;  +    }  +       inline void BeQuiet() {          SetPrintTimes(false);          SetPrintBeforeSuite(false); @@ -617,7 +617,7 @@ 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" +         << "  --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 +697,8 @@ 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, "--continue-on-fail") == 0) {  +                    processor.SetContinueOnFail(true);                   } else if (strcmp(name, "--print-times") == 0) {                      processor.SetPrintTimes(true);                  } else if (strcmp(name, "--from") == 0) { | 
