Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wrvb/googletest
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: google/googletest
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Nov 5, 2016

  1. Fix google#923 - support CMAKE_CROSSCOMPILING_EMULATOR for tests

    Replaced legacy syntax of cmake add_test() with more modern syntax.
    This allows running gtests's own tests on remote (cross) systems
    using CMAKE_CROSSCOMPILING_EMULATOR with cmake-3.3 or newer.
    Martin Oberhuber authored Nov 5, 2016
    Copy the full SHA
    008e54c View commit details

Commits on Jun 19, 2017

  1. Allow death test child to bypass WER under MinGW

    The mechanics of suppressing debugger trapping and Windows Error Reporting for the crashed child process in a death test are currently guarded under the `GTEST_HAS_SEH` macro. This seems unnecessary, as the logic does not call any APIs related to Structured Error Handling.
    
    Replace the guarding macro with the more permissive `GTEST_OS_WINDOWS`, so that Windows toolchains without SEH support (e.g. MinGW) can benefit from it.
    
    Fixes: google#1116
    tanzislam committed Jun 19, 2017
    Copy the full SHA
    e494290 View commit details

Commits on Jun 30, 2017

  1. *Silence false positive memory leaks reported by Microsoft's debug CRT*

    Add a new RAII MemoryIsNotDeallocated class that excludes memory allocations from Microsoft’s debug CRT leak detection report.
    We use this RAII class to silence 2 false positive leaks that are caused by memory allocations that are intentionally never deallocated.
    
    *Background*
    The MS debug CRT has a lightweight memory leak detection mechanism that can only detect if a memory allocation is missing a matching deallocation.
    Consequently, it will report a false positive leak for memory that’s intentionally never deallocated. For example, memory that’s reachable for the entire lifetime of a app.
    Note the MS debug CRT is always tracking memory allocations but the final memory leak report is disabled by default. As you can’t avoid paying for its cost, you may as well use it.
    
    The memory leak report can be enabled by calling the following function
      #ifdef _MSC_VER
      _CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF);
      #endif // _MSC_VER
    anywhere before exiting main.
    
    For example, the following are the false positive leaks reported before this change;
    
    Detected memory leaks!
    Dumping objects ->
    {750} normal block at 0x015DF938, 8 bytes long.
    Data: <  ]     > 00 F9 5D 01 00 00 00 00
    {749} normal block at 0x015DEE60, 32 bytes long.
    Data: <` ] ` ] ` ]     > 60 EE 5D 01 60 EE 5D 01 60 EE 5D 01 01 01 CD CD
    {748} normal block at 0x015DF900, 12 bytes long.
    Data: <8 ] ` ]     > 38 F9 5D 01 60 EE 5D 01 00 00 00 00
    {747} normal block at 0x015DA0F8, 24 bytes long.
    Data: <                > FF FF FF FF FF FF FF FF 00 00 00 00 00 00 00 00
    Object dump complete.
    
    As you can see from above it’s not easy to identify the above are false positives. Consequently, if false positive leaks are not fixed or silenced, then it becomes impractical to identify real memory leaks.
    scottslacksmith committed Jun 30, 2017
    Copy the full SHA
    c958e26 View commit details

Commits on Aug 10, 2017

  1. Copy the full SHA
    713b077 View commit details

Commits on Aug 16, 2017

  1. Copy the full SHA
    960de71 View commit details
  2. Copy the full SHA
    cf85f56 View commit details

Commits on Aug 21, 2017

  1. Copy the full SHA
    a838de3 View commit details

Commits on Sep 6, 2017

  1. Copy the full SHA
    78b1ff0 View commit details

Commits on Nov 19, 2017

  1. Copy the full SHA
    4ba3803 View commit details

Commits on Nov 24, 2017

  1. Copy the full SHA
    6c093a2 View commit details

Commits on Dec 7, 2017

  1. Copy the full SHA
    ad383b2 View commit details
  2. Copy the full SHA
    4d50715 View commit details

Commits on Dec 8, 2017

  1. Copy the full SHA
    8f90d46 View commit details

Commits on Dec 12, 2017

  1. Copy the full SHA
    3e2cb75 View commit details

Commits on Dec 31, 2017

  1. Copy the full SHA
    555e6e7 View commit details

Commits on Jan 12, 2018

  1. Copy the full SHA
    27bb844 View commit details

Commits on Feb 12, 2018

  1. Copy the full SHA
    f11a8f9 View commit details

Commits on Mar 5, 2018

  1. Copy the full SHA
    a7a7f51 View commit details
  2. Merge branch 'fix_death_test_child_mingw_wer_issue1116' of https://gi…

    …thub.com/tanzislam/googletest into fix_death_test_child_mingw_wer_issue1116
    tanzislam committed Mar 5, 2018
    Copy the full SHA
    6d08931 View commit details

Commits on Mar 12, 2018

  1. merges-port(1)
    gennadiycivil committed Mar 12, 2018
    Copy the full SHA
    cf9d634 View commit details
  2. Copy the full SHA
    abc6e94 View commit details
  3. Allow macros inside of parametrized test names.

    This allows doing things like TEST_P(TestFixture, MAYBE(TestName))
    for nicer conditional test disabling.
    
    Upstream of cr/188748737.
    
    Tested:
    Added unit tests MacroNamingTest and MacroNamingTestNonParametrized.
    sheepmaster committed Mar 12, 2018
    Copy the full SHA
    7b70413 View commit details
  4. Copy the full SHA
    fc437ef View commit details
  5. Merge pull request google#1503 from sheepmaster/upstream_188748737

    Allow macros inside of parametrized test names.
    gennadiycivil authored Mar 12, 2018
    Copy the full SHA
    f35fe6d View commit details

Commits on Mar 13, 2018

  1. Copy the full SHA
    af463c4 View commit details
  2. Copy the full SHA
    5461f63 View commit details
  3. Copy the full SHA
    a719320 View commit details
  4. merging, merging

    gennadiycivil committed Mar 13, 2018
    Copy the full SHA
    2814b4b View commit details

Commits on Mar 14, 2018

  1. erging, cont

    gennadiycivil committed Mar 14, 2018
    Copy the full SHA
    262aaf2 View commit details
  2. Copy the full SHA
    a325ad2 View commit details

Commits on Mar 15, 2018

  1. Copy the full SHA
    a178cc7 View commit details

Commits on Mar 16, 2018

  1. cl 189032107

    gennadiycivil committed Mar 16, 2018
    Copy the full SHA
    080fcbe View commit details
  2. cl 189032107, again

    gennadiycivil committed Mar 16, 2018
    Copy the full SHA
    a3c2e10 View commit details

Commits on Mar 19, 2018

  1. Merge pull request google#1508 from gennadiycivil/master

    merge, again, IsRecursiveContainer
    gennadiycivil authored Mar 19, 2018
    Copy the full SHA
    dccc2d6 View commit details

Commits on Mar 21, 2018

  1. More merges

    gennadiycivil committed Mar 21, 2018
    Copy the full SHA
    691e38e View commit details

Commits on Mar 22, 2018

  1. more merges

    gennadiycivil committed Mar 22, 2018
    Copy the full SHA
    0f65679 View commit details
  2. more merges

    gennadiycivil committed Mar 22, 2018
    Copy the full SHA
    da71e8c View commit details
  3. Update appveyor.yml

    gennadiycivil authored Mar 22, 2018
    Copy the full SHA
    eaaa422 View commit details
  4. Copy the full SHA
    4e89c76 View commit details
  5. Copy the full SHA
    a1692ed View commit details
  6. merging, gmock -1

    gennadiycivil committed Mar 22, 2018
    Copy the full SHA
    b7c5683 View commit details
  7. Merge pull request google#1510 from gennadiycivil/master

    More merges, restruct some
    gennadiycivil authored Mar 22, 2018
    Copy the full SHA
    dfa853b View commit details
  8. Copy the full SHA
    a28a7eb View commit details

Commits on Mar 23, 2018

  1. gmock-matchers merging -2
    gennadiycivil committed Mar 23, 2018
    Copy the full SHA
    466a49a View commit details
  2. Copy the full SHA
    b907c26 View commit details

Commits on Mar 26, 2018

  1. Copy the full SHA
    8ea10d3 View commit details
  2. Copy the full SHA
    2318705 View commit details
  3. Copy the full SHA
    6aae206 View commit details
  4. Merge pull request google#1512 from gennadiycivil/master

    merges, gmock - 1
    gennadiycivil authored Mar 26, 2018
    Copy the full SHA
    7857975 View commit details
  5. merges, gtest

    gennadiycivil committed Mar 26, 2018
    Copy the full SHA
    3df7cbe View commit details
Showing 388 changed files with 60,705 additions and 79,833 deletions.
4 changes: 4 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Run manually to reformat a file:
# clang-format -i --style=file <file>
Language: Cpp
BasedOnStyle: Google
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/00-bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Bug Report
description: Let us know that something does not work as expected.
title: "[Bug]: Please title this bug report"
body:
- type: textarea
id: what-happened
attributes:
label: Describe the issue
description: What happened, and what did you expect to happen?
validations:
required: true
- type: textarea
id: steps
attributes:
label: Steps to reproduce the problem
description: It is important that we are able to reproduce the problem that you are experiencing. Please provide all code and relevant steps to reproduce the problem, including your `BUILD`/`CMakeLists.txt` file and build commands. Links to a GitHub branch or [godbolt.org](https://godbolt.org/) that demonstrate the problem are also helpful.
validations:
required: true
- type: textarea
id: version
attributes:
label: What version of GoogleTest are you using?
description: Please include the output of `git rev-parse HEAD` or the GoogleTest release version number that you are using.
validations:
required: true
- type: textarea
id: os
attributes:
label: What operating system and version are you using?
description: If you are using a Linux distribution please include the name and version of the distribution as well.
validations:
required: true
- type: textarea
id: compiler
attributes:
label: What compiler and version are you using?
description: Please include the output of `gcc -v` or `clang -v`, or the equivalent for your compiler.
validations:
required: true
- type: textarea
id: buildsystem
attributes:
label: What build system are you using?
description: Please include the output of `bazel --version` or `cmake --version`, or the equivalent for your build system.
validations:
required: true
- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context about the problem here.
validations:
required: false
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/10-feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Feature request
description: Propose a new feature.
title: "[FR]: Please title this feature request"
labels: "enhancement"
body:
- type: textarea
id: version
attributes:
label: Does the feature exist in the most recent commit?
description: We recommend using the latest commit from GitHub in your projects.
validations:
required: true
- type: textarea
id: why
attributes:
label: Why do we need this feature?
description: Ideally, explain why a combination of existing features cannot be used instead.
validations:
required: true
- type: textarea
id: proposal
attributes:
label: Describe the proposal.
description: Include a detailed description of the feature, with usage examples.
validations:
required: true
- type: textarea
id: platform
attributes:
label: Is the feature specific to an operating system, compiler, or build system version?
description: If it is, please specify which versions.
validations:
required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Get Help
url: https://github.com/google/googletest/discussions
about: Please ask and answer questions here.
49 changes: 49 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -8,10 +8,12 @@ bazel-genfiles
bazel-googletest
bazel-out
bazel-testlogs
MODULE.bazel.lock
# python
*.pyc

# Visual Studio files
.vs
*.sdf
*.opensdf
*.VC.opendb
@@ -23,6 +25,10 @@ Win32-Release/
x64-Debug/
x64-Release/

# VSCode files
.cache/
cmake-variants.yaml

# Ignore autoconf / automake files
Makefile.in
aclocal.m4
@@ -34,7 +40,50 @@ googletest/m4/ltoptions.m4
googletest/m4/ltsugar.m4
googletest/m4/ltversion.m4
googletest/m4/lt~obsolete.m4
googlemock/m4

# Ignore generated directories.
googlemock/fused-src/
googletest/fused-src/

# macOS files
.DS_Store
googletest/.DS_Store
googletest/xcode/.DS_Store

# Ignore cmake generated directories and files.
CMakeFiles
CTestTestfile.cmake
Makefile
cmake_install.cmake
googlemock/CMakeFiles
googlemock/CTestTestfile.cmake
googlemock/Makefile
googlemock/cmake_install.cmake
googlemock/gtest
/bin
/googlemock/gmock.dir
/googlemock/gmock_main.dir
/googlemock/RUN_TESTS.vcxproj.filters
/googlemock/RUN_TESTS.vcxproj
/googlemock/INSTALL.vcxproj.filters
/googlemock/INSTALL.vcxproj
/googlemock/gmock_main.vcxproj.filters
/googlemock/gmock_main.vcxproj
/googlemock/gmock.vcxproj.filters
/googlemock/gmock.vcxproj
/googlemock/gmock.sln
/googlemock/ALL_BUILD.vcxproj.filters
/googlemock/ALL_BUILD.vcxproj
/lib
/Win32
/ZERO_CHECK.vcxproj.filters
/ZERO_CHECK.vcxproj
/RUN_TESTS.vcxproj.filters
/RUN_TESTS.vcxproj
/INSTALL.vcxproj.filters
/INSTALL.vcxproj
/googletest-distribution.sln
/CMakeCache.txt
/ALL_BUILD.vcxproj.filters
/ALL_BUILD.vcxproj
81 changes: 0 additions & 81 deletions .travis.yml

This file was deleted.

Loading