1. 08 May, 2020 2 commits
    • Martin Storsjö's avatar
      Remove an explicit include of debugapi.h · d86e9e23
      Martin Storsjö authored
      The documentation for IsDebuggerPresent says that one just should
      include windows.h, as that one is an umbrella header that includes
      the header that declares IsDebuggerPresent. In older Windows SDKs,
      debugapi.h didn't exist and IsDebuggerPresent was declared in
      winbase.h (also included by windows.h).
      
      This should fix issue #2822 properly.
      d86e9e23
    • Martin Storsjö's avatar
      Revert "Googletest export" · 09f58751
      Martin Storsjö authored
      This reverts commit a9f6c1ed.
      
      That commit cannot fix the issue it sets out to fix.
      
      The original issue, #2822, was that building with a toolset
      targeting XP compatibility is missing the debugapi.h header -
      as debugapi.h didn't exist in older Windows SDKs.
      
      Commit a9f6c1ed misinterpreted
      the Microsoft documentation about IsDebuggerPresent. The information
      about which header to use, "debugapi.h (include Windows.h)" means
      that the function declaration currently lives in debugapi.h, but
      for compatibility, just include the Windows.h umbrella header.
      In older Windows SDKs (e.g. the v6.0a SDK), IsDebuggerPresent
      is declared in winbase.h, and debugapi.h doesn't exist at all in those
      versions.
      
      Including Windows.h with a different capitalization than the existing
      include won't help finding headers that don't exist.
      
      Including Windows.h with a capital W breaks cross compilation with mingw
      toolchains, where the header always has been spelled with a lower case
      W. When building on native windows, the file system is case insensitive
      and the capitalization doesn't matter.
      
      This fixes issue #2840.
      09f58751
  2. 05 May, 2020 1 commit
  3. 09 Apr, 2020 1 commit
  4. 29 Mar, 2020 1 commit
  5. 24 Mar, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 1ced315a
      Abseil Team authored
      Add --gtest_fail_fast support to googletest.
      
        - Analogous functionality to to golang -test.failfast and python --failfast
        - Stops test execution upon first test failure.
        - Also add support Bazel equivalent env var (TESTBRIDGE_TEST_RUNNER_FAIL_FAST)
      
      PiperOrigin-RevId: 302488880
      1ced315a
  6. 19 Mar, 2020 1 commit
  7. 17 Mar, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 482ac6ee
      Abseil Team authored
      Move internal function out of header because Hyrum's law always wins.
      
      PiperOrigin-RevId: 301446904
      482ac6ee
  8. 28 Feb, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · e588eb1f
      Abseil Team authored
      Rename internal color enumerators to avoid conflicts with curses.h macro definitions.
      Fixes #2685
      
      PiperOrigin-RevId: 297639382
      e588eb1f
  9. 21 Feb, 2020 1 commit
  10. 21 Jan, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · 18b67bfc
      Abseil Team authored
      Add extra filtering so that the reported message differentiates between the case where INSTANTIATE_TEST_SUITE_P is missing vs. the case where TEST_P is missing.
      
      PiperOrigin-RevId: 290114508
      18b67bfc
  11. 16 Jan, 2020 4 commits
    • Abseil Team's avatar
      Googletest export · 8b4817e3
      Abseil Team authored
      Correct the spelling of PARAMETERIZED.
      
      PiperOrigin-RevId: 289897278
      8b4817e3
    • Abseil Team's avatar
      Googletest export · 3e79d366
      Abseil Team authored
      Wire up things to support marking a type paramaterized test as allowed to be un-instantiated.
      
      PiperOrigin-RevId: 289699939
      3e79d366
    • Abseil Team's avatar
      Googletest export · 0b024bd9
      Abseil Team authored
      Add GTEST_ALLOW_UNINSTANTIATED_PARAMTERIZED_TEST to mark a paramaterized test as allowed to be un-instantiated.
      
      This allows test suites, that are defined in libraries and, for other reasons, get linked in (which should probably be avoided, but isn't always possible) to be marked as allowed to go uninstantiated.
      
      This can also be used to grandfather existing issues and expedite adoption of the checks with regards to new cases before they can be fixed.
      
      PiperOrigin-RevId: 289581573
      0b024bd9
    • Abseil Team's avatar
      Googletest export · ed16134f
      Abseil Team authored
      Change testing::TempDir() return value for Android
      
      PiperOrigin-RevId: 289102017
      ed16134f
  12. 02 Jan, 2020 1 commit
    • Abseil Team's avatar
      Googletest export · a13a0626
      Abseil Team authored
      Add option (default to disabled) to make C++ type parameterized tests (TYPED_TEST_P) fail when they're not instantiated.
      
      When an un-instantiated TYPED_TEST_P is found, a new test will be inserted that emits a suitable message. For now, that is just a notice, but the hope it to flip the bit to make it fail by default.
      
      PiperOrigin-RevId: 286408038
      a13a0626
  13. 13 Dec, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · d442089d
      Abseil Team authored
      Detect when C++ parametric tests (TEST_P) are not instantiated.
      
      When an un-instantiated TEST_P is found, a new test will be inserted that will emit a warning message.
      
      This can be made to error with minor code edits.
      In the future, that is intended to be the default.
      
      PiperOrigin-RevId: 284901666
      d442089d
  14. 06 Dec, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 9ed99c6c
      Abseil Team authored
      Change googletest to notice failures during SetUpTestSuite() and TearDownTestSuite().
      
      Previously, errors that occurred during those functions were logged but otherwise ignored. After this change, such failures will cause the test to fail and a brief summary will be printed at the bottom of the test log.
      
      See https://github.com/google/googletest/issues/2330.
      
      PiperOrigin-RevId: 284033342
      9ed99c6c
  15. 22 Nov, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 717ce7fe
      Abseil Team authored
      Use standard C++11 integer types in gtest-port.h.
      
      Remove testing::internal::{Int,Uint}{32,64} in favor of types
      guaranteed to be in <cstdint> since C++11.
      
      Tests for built-in integer type coverage are switched from
      {Int,Uint}64 to [unsigned] long long, which is guaranteed by
      C++11 to exist and be at least 64-bit wide.
      
      PiperOrigin-RevId: 281565263
      717ce7fe
  16. 24 Oct, 2019 1 commit
  17. 18 Oct, 2019 1 commit
  18. 17 Oct, 2019 1 commit
    • Alexey Spiridonov's avatar
      [googletest] Output skip message · cbf019de
      Alexey Spiridonov authored
      Closes #2208
      
      Previously, skip messages were invisible, so debugging skips was hard.
      
      Now we have this:
      
      ```
      $ ./googletest/gtest_skip_test
      Running main() from /home/lesha/github/snarkmaster/googletest/googletest/src/gtest_main.cc
      [==========] Running 3 tests from 2 test suites.
      [----------] Global test environment set-up.
      [----------] 1 test from SkipTest
      [ RUN      ] SkipTest.DoesSkip
      /home/lesha/github/snarkmaster/googletest/googletest/test/gtest_skip_test.cc:38: Skipped
      skipping single test
      [  SKIPPED ] SkipTest.DoesSkip (0 ms)
      [----------] 1 test from SkipTest (1 ms total)
      ...
      ```
      cbf019de
  19. 11 Oct, 2019 1 commit
  20. 06 Sep, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 3f05f651
      Abseil Team authored
      Extend gtest-port and stubs for ESP_PLATFORM
      
      ESP_PLATFORM is the macro used to indicate compilation for the ESP32
      using the esp-idf. This isn't a fully posix compatible system so
      various features of google test need to be stubbed out in order for
      it to work. It's oddly similar to the GTEST_OS_WINDOWS_PHONE setup.
      
      PiperOrigin-RevId: 267471968
      3f05f651
  21. 20 Aug, 2019 1 commit
  22. 06 Aug, 2019 1 commit
  23. 01 Aug, 2019 2 commits
    • Abseil Team's avatar
      Googletest export · b15335df
      Abseil Team authored
      Fix signed conversion warning for wchar_t -> wint_t.
      Fixes Github issue #2300
      
      PiperOrigin-RevId: 261045497
      b15335df
    • misterg's avatar
      Googletest export · 2221875d
      misterg authored
      Internal Change
      
      PiperOrigin-RevId: 260939845
      2221875d
  24. 30 Jul, 2019 1 commit
  25. 26 Jul, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 2134e3fd
      Abseil Team authored
      Adds ISO8601 timestamps to XML output and RFC3339 timestamps to JSON output.
      
      Adds timestamps to testsuites, testsuite and testcases structured JSON/XML output for better reporting how/where time is spent on tests.
      
      PiperOrigin-RevId: 260039817
      2134e3fd
  26. 22 May, 2019 1 commit
    • Lingfeng Yang's avatar
      unbreak windows build · 2f58f41d
      Lingfeng Yang authored
      windows msvc toolchain with werror and wconversion
      will break if converting long to DWORD.
      2f58f41d
  27. 18 Apr, 2019 1 commit
  28. 06 Apr, 2019 1 commit
    • Enji Cooper's avatar
      clang: fix `-Wsign-conversion` errors · 3829b84e
      Enji Cooper authored
      
      
      Cast some values as their unsigned equivalents or `size_t` to match the
      parameter type used for the template object under test. Also, provide
      UInt32 equivalent delegate methods for some callers (with
      int-equivalents for backwards compatibility).
      
      This closes #2146.
      Signed-off-by: default avatarEnji Cooper <yaneurabeya@gmail.com>
      3829b84e
  29. 01 Apr, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · d9825431
      Abseil Team authored
      Remove support for "global" ::string and ::wstring types.
      This support existed for legacy codebases that existed from before namespaces
      where a thing. It is no longer necessary.
      
      PiperOrigin-RevId: 241335738
      d9825431
  30. 30 Mar, 2019 1 commit
    • Enji Cooper's avatar
      Handle GTEST_SKIP() when calling `Environment::SetUp()` · 67c75ff8
      Enji Cooper authored
      
      
      gtest prior to this change would completely ignore `GTEST_SKIP()` if
      called in `Environment::SetUp()`, instead of bailing out early, unlike
      `Test::SetUp()`, which would cause the tests themselves to be skipped.
      The only way (prior to this change) to skip the tests would be to
      trigger a fatal error via `GTEST_FAIL()`.
      
      Desirable behavior, in this case, when dealing with
      `Environment::SetUp()` is to check for prerequisites on a system
      (example, kernel supports a particular featureset, e.g., capsicum), and
      skip the tests. The alternatives prior to this change would be
      undesirable:
      
      - Failing sends the wrong message to the test user, as the result of the
        tests is indeterminate, not failed.
      - Having to add per-test class abstractions that override `SetUp()` to
        test for the capsicum feature set, then skip all of the tests in their
        respective SetUp fixtures, would be a lot of human and computational
        work; checking for the feature would need to be done for all of the
        tests, instead of once for all of the tests.
      
      For those reasons, making `Environment::SetUp()` handle `GTEST_SKIP()`,
      by not executing the testcases, is the most desirable solution.
      
      In order to properly diagnose what happened when running the tests if
      they are skipped, print out the diagnostics in an ad hoc manner.
      
      Update the documentation to note this change and integrate a new test,
      gtest_skip_in_environment_setup_test, into the test suite.
      
      This change addresses #2189.
      Signed-off-by: default avatarEnji Cooper <yaneurabeya@gmail.com>
      67c75ff8
  31. 28 Mar, 2019 1 commit
    • Abseil Team's avatar
      Googletest export · 5b752b19
      Abseil Team authored
      Update XML and JSON output to be consistent with the standard.
      
      PiperOrigin-RevId: 239833242
      5b752b19
  32. 05 Mar, 2019 1 commit
  33. 11 Feb, 2019 1 commit
  34. 03 Jan, 2019 1 commit
    • misterg's avatar
      Googletest export · 3a460a26
      misterg authored
      TestCase->TestSuite refactoring
      
      PiperOrigin-RevId: 227702164
      3a460a26
  35. 02 Jan, 2019 1 commit