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 | 694fb2daa19ebb6642b93a8e94bd548b621b76df (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/testing/unittest | |
| parent | a8edace702b9ef73e7589895cd0637c7431d6158 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 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 8966b60ac7e..3679b768ed4 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 646744ce2bb..44517a00924 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 f965788a09d..305bc6b40fc 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) { | 
