Skip to content

Conversation

rjaegers
Copy link
Contributor

@rjaegers rjaegers commented Mar 4, 2025

This changes visible behavior

The following changes are proposed:

  • Don't check for presence of backtrace information when using DEF_SOURCE_LINE

The purpose of this change

When using the DEF_SOURCE_LINE property on a test it is now required to have backtrace information present, while that backtrace information is not used. This change removes that dependency to enable support for gtest_discover_tests via the XML/JSON output. This will require an additional PR on the GoogleTest module in CMake.

Other Notes/Information

Based on the great work done in #3631.

@rjaegers rjaegers changed the title ctest: Don't require backtrace in presence of DEF_SOURCE_LINE fix(ctest): Don't require backtrace in presence of DEF_SOURCE_LINE Mar 5, 2025
@rjaegers rjaegers changed the title fix(ctest): Don't require backtrace in presence of DEF_SOURCE_LINE fix(ctest): don't require backtrace in presence of DEF_SOURCE_LINE Mar 5, 2025
@rjaegers
Copy link
Contributor Author

rjaegers commented Mar 5, 2025

@microsoft-github-policy-service agree company="Philips"

Copy link
Collaborator

@gcampbell-msft gcampbell-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look great, could you also add a CHANGELOG entry?
The 1.21 section hasn't been added yet, if you could do it.

## 1.21

Bug fixes: 

- <>

@rjaegers
Copy link
Contributor Author

rjaegers commented Mar 8, 2025

@gcampbell-msft added a CHANGELOG entry, hope I am in the right ballpark with the wording.

I have a follow-up PR ready that adds name-demangling for C++ symbols.

gcampbell-msft
gcampbell-msft previously approved these changes Mar 10, 2025
@gcampbell-msft
Copy link
Collaborator

Just a merge conflict resolution in CHANGELOG.md. Merging.

@gcampbell-msft gcampbell-msft merged commit 3ab4e0d into microsoft:main Mar 10, 2025
1 check passed
hippo91 pushed a commit to hippo91/vscode-cmake-tools that referenced this pull request Mar 29, 2025
…icrosoft#4321)

* ctest: Don't require backtrace in presence of DEF_SOURCE_LINE

* docs: add CHANGELOG entry

---------

Co-authored-by: Garrett Campbell <[email protected]>
fajkomix1990 pushed a commit to fajkomix1990/mati---glowny that referenced this pull request Jul 2, 2025
…icrosoft#4321)

* ctest: Don't require backtrace in presence of DEF_SOURCE_LINE

* docs: add CHANGELOG entry

---------

Co-authored-by: Garrett Campbell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants