1. 31 May, 2023 1 commit
    • Paul Wankadia's avatar
      Update GoogleTest to RE2 release `2023-06-01`. · a7833a19
      Paul Wankadia authored
      Note that RE2 has taken a dependency on Abseil, so the `main` branch
      should be used from now on. The `abseil` branch will go away soon...
      
      PiperOrigin-RevId: 536737543
      Change-Id: I0e595ee8e754b924881f997f286cdec3822763bf
      a7833a19
  2. 30 May, 2023 1 commit
  3. 25 May, 2023 1 commit
    • niranjan's avatar
      Disable some warnings for IntelLLVM on Windows. · 029d3ddd
      niranjan authored
      Use /fp:precise to override IntelLLVM's default of /fp:fast.
      This makes IsInf and IsNan work as expected by googletest.
      
      ```
      [build]...\googletest\googlemock\test\gmock-function-mocker_test.cc(143,21): error: 'VoidReturning' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
      [build]   MOCK_METHOD(void, VoidReturning, (int n));  // NOLINT
      ```
      
      ```
      [build] ...\googletest\googlemock\test\gmock-function-mocker_test.cc(182,20): error: exception specification of overriding function is more lax than base version [-Werror,-Wmicrosoft-exception-spec]
      [build]   MOCK_METHOD(int, CTNullary, (), (Calltype(STDMETHODCALLTYPE)));
      ```
      
      ```
      [build] ...\googletest\googletest\test\googletest-death-test-test.cc(209,5): error: unused function 'DieInCRTDebugElse12' [-Werror,-Wunused-function]
      [build] int DieInCRTDebugElse12(int* sideeffect) {
      [build]     ^
      ```
      
      ```
      [build] ...\googletest\googletest\test\gtest_unittest.cc(4096,7): error: variable 'n' set but not used [-Werror,-Wunused-but-set-variable]
      [build]   int n = 0;
      ```
      029d3ddd
  4. 24 May, 2023 1 commit
    • Niranjan Nilakantan's avatar
      Build googletest with IntelLLVM compilers. · e032d576
      Niranjan Nilakantan authored
      Use the same flags as Clang if the compiler id is IntelLLVM.
      
      IntelLLVM warns if a double constant is assigned to a float.
      
      ```
      [build] .../googletest/googletest/include/gtest/gtest-printers.h:516:17: warning: implicit conversion between floating point types of different sizes [-Wimplicit-float-size-conversion]
      [build]       mulfor6 = 1e1;
      ```
      
      IntelLLVM uses fp-model=fast by default, breaking IsNan and IsInf tests.
      Use -ffp-model=precise to fix this.
      
      IntelLLVM does not support -Wchar-subscripts
      
      Fixes #4255
      e032d576
  5. 22 May, 2023 1 commit
  6. 21 May, 2023 1 commit
  7. 17 May, 2023 1 commit
  8. 16 May, 2023 1 commit
  9. 15 May, 2023 2 commits
  10. 11 May, 2023 4 commits
  11. 08 May, 2023 1 commit
  12. 07 May, 2023 1 commit
  13. 05 May, 2023 1 commit
  14. 02 May, 2023 1 commit
  15. 01 May, 2023 2 commits
  16. 28 Apr, 2023 2 commits
  17. 26 Apr, 2023 1 commit
    • Abseil Team's avatar
      Use Abseil Flag public API for flag parsing. · dea0484e
      Abseil Team authored
      This change brings InitGoogleTest semantic in accordance with the official documentation: only GoogleTest flags are removed from argc/argv. The rest of the flags remains in place. We do nothing special for flags with unrecognized gunit_/gtest_ prefix and we do not report them.
      
      PiperOrigin-RevId: 527257221
      Change-Id: Ibb29a1bda1a44251a4ee579c0fb5bbdfd9965c21
      dea0484e
  18. 25 Apr, 2023 2 commits
  19. 24 Apr, 2023 1 commit
    • Patryk Gawroński's avatar
      gmock: fix issue #4222 · 51eeae5a
      Patryk Gawroński authored
      Rename 'Result' struct to 'NonMoveableStruct' in
      gmock-spec-builders_test.cc in ExpectCallTest.NonMoveableType test
      51eeae5a
  20. 21 Apr, 2023 2 commits
  21. 20 Apr, 2023 5 commits
  22. 17 Apr, 2023 2 commits
  23. 14 Apr, 2023 1 commit
  24. 12 Apr, 2023 1 commit
  25. 11 Apr, 2023 2 commits
  26. 05 Apr, 2023 1 commit
    • Abseil Team's avatar
      gtest.cc: run tests within a test suite in a deterministic order. · 057b4e90
      Abseil Team authored
      Ensure that tests are run in the order specified in the source code, even if
      they are registered manually using RegisterTest. There should be no behavior
      change for the common case.
      
      PiperOrigin-RevId: 522136303
      Change-Id: If155e2666780af0e514fbbf5ff2b157d5fe2fef1
      057b4e90