1. 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
  2. 11 Feb, 2019 1 commit
  3. 29 Oct, 2018 1 commit
    • misterg's avatar
      Googletest export · 80b43d90
      misterg authored
      Remove linked_ptr and use std::shared_ptr instead
      
      PiperOrigin-RevId: 219129336
      80b43d90
  4. 26 Oct, 2018 2 commits
    • Abseil Team's avatar
      Googletest export · b57c7039
      Abseil Team authored
      Remove linked_ptr and use std::shared_ptr instead
      
      PiperOrigin-RevId: 218618184
      b57c7039
    • misterg's avatar
      Googletest export · a50e4f05
      misterg authored
      Remove linked_ptr and use std::shared_ptr instead
      
      PiperOrigin-RevId: 218571466
      a50e4f05
  5. 09 Oct, 2018 1 commit
  6. 02 Oct, 2018 2 commits
  7. 13 Sep, 2018 2 commits
    • misterg's avatar
      Googletest export · 21d52d3a
      misterg authored
      Project import generated by Copybara.
      
      PiperOrigin-RevId: 212656749
      21d52d3a
    • misterg's avatar
      Googletest export · e1b8d82f
      misterg authored
      Internal Change
      
      PiperOrigin-RevId: 212656679
      e1b8d82f
  8. 24 Aug, 2018 1 commit
  9. 22 Aug, 2018 1 commit
  10. 21 Aug, 2018 1 commit
    • Dakota Hawkins's avatar
      Improve CMake exported targets. · 759ef7c4
      Dakota Hawkins authored
      
      
      I _think_ this represents some of the "best practices" for exporting
      targets. They'll be available in a `googletest::` namespace (e.g.
      `googletest::gmock`) with non-namespaced `ALIAS` targets.
      
      - Added GOOGLETEST_VERSION variable
      - Use `CMakePackageConfigHelpers`, bump minimum CMake version to 2.8.8
      Signed-off-by: default avatarDakota Hawkins <dakotahawkins@gmail.com>
      759ef7c4
  11. 13 Aug, 2018 1 commit
  12. 03 Aug, 2018 1 commit
  13. 02 Aug, 2018 6 commits
    • Gennadiy Civil's avatar
      · 0d29f970
      Gennadiy Civil authored
      more fixes
      0d29f970
    • Gennadiy Civil's avatar
      · 95c313e6
      Gennadiy Civil authored
      add --no_stacktrace_support for json-output-unittest
      95c313e6
    • Gennadiy Civil's avatar
      · 677df883
      Gennadiy Civil authored
      cmake test fixes
      677df883
    • Gennadiy Civil's avatar
      · b7244ff3
      Gennadiy Civil authored
      cmake fixes
      b7244ff3
    • Gennadiy Civil's avatar
      · 930f0f86
      Gennadiy Civil authored
      cmake tests changes
      930f0f86
    • Gennadiy Civil's avatar
      · f3511bf1
      Gennadiy Civil authored
      cleaning up and adding test changes to CMake
      f3511bf1
  14. 01 Aug, 2018 1 commit
    • Gennadiy Civil's avatar
      · 5b9b39ff
      Gennadiy Civil authored
      Corresponding CMake Changes
      5b9b39ff
  15. 10 Jul, 2018 1 commit
  16. 05 Apr, 2018 1 commit
  17. 28 Feb, 2018 1 commit
    • Petr Hosek's avatar
      Support JSON output format in addition to XML · 6baf17e9
      Petr Hosek authored
      This change allows emitting output in JSON format in addition to the
      already supported XML format. The implementation as well as the file
      structure is intentionally modelled after the XML one.
      6baf17e9
  18. 26 Feb, 2018 1 commit
    • David Neto's avatar
      Use DEBUG_POSTFIX instead of CMAKE_DEBUG_POSTFIX · 20074be1
      David Neto authored
      CMAKE_DEBUG_POSTFIX is a global configuration parameter, and
      changing it pollutes the configuration space for other projects
      that enclose this project.
      
      DEBUG_POSTFIX is better to use since it is a target-specific poperty.
      
      Fixes #1334
      Fixes #1268
      20074be1
  19. 11 Dec, 2017 1 commit
  20. 07 Dec, 2017 1 commit
  21. 27 Nov, 2017 1 commit
  22. 27 Oct, 2017 1 commit
  23. 14 Sep, 2017 1 commit
  24. 05 Sep, 2017 1 commit
    • Herbert Thielen's avatar
      remove obsolete link_directories command · e8c6942a
      Herbert Thielen authored
      It's not necessary, as the target_link_libraries command contains an
      absolute path already, and the path given doesn't exist anymore,
      leading only to linker warnings like:
      ld: warning: directory not found for option
      '-L/Users/travis/build/google/googletest/build/googlemock/gtest/src'
      e8c6942a
  25. 18 Aug, 2017 1 commit
    • Henry Schreiner's avatar
      Adding CMake visibility policy setting · 5518a1d3
      Henry Schreiner authored
      This policy setting will silence a warning when using with a visibility settings on targets. Due to the forced `cmake_minimum_version`, policy settings in CMakeLists calling this one (including the main CMakeLists) are lost, forcing the change to be made here.
      5518a1d3
  26. 14 Aug, 2017 1 commit
  27. 09 Aug, 2017 1 commit
    • Matthew Woehlke's avatar
      Fix library install destinations · 0e8e0e07
      Matthew Woehlke authored
      
      
      Modify library install destinations to install .dll's to the correct
      location (`bin`, not `lib`), and to install other artifacts to the
      correct platform-dependent location by using GNUInstallDirs. This is
      required for some distributions (e.g. Fedora) and will fix an issue that
      otherwise requires those distributions to patch the upstream sources.
      Also, add options to suppress installation, which may be useful for
      projects that embed Google Test.
      
      Since Google Test is trying to support archaic versions of CMake, a
      brain-dead fallback (which requires that the user set either LIB_SUFFIX
      or CMAKE_INSTALL_LIBDIR themselves) is included for versions that
      predate GNUInstallDirs.
      
      Fixes #1161.
      Co-Authored-By: default avatard3x0r <d3x0r@users.noreply.github.com>
      0e8e0e07
  28. 18 Dec, 2016 1 commit
  29. 06 Dec, 2015 1 commit
  30. 23 Nov, 2015 1 commit
  31. 30 Oct, 2015 1 commit
  32. 25 Aug, 2015 1 commit