Skip to content

fix: compilation error if SENTRY_TEST_PATH_PREFIX is defined#1279

Merged
supervacuus merged 6 commits into
masterfrom
fix/tests-compilation-error
Jun 25, 2025
Merged

fix: compilation error if SENTRY_TEST_PATH_PREFIX is defined#1279
supervacuus merged 6 commits into
masterfrom
fix/tests-compilation-error

Conversation

@vaind

@vaind vaind commented Jun 17, 2025

Copy link
Copy Markdown
Contributor

This got broken accidently in #1234 but there is no code path that matches in this repo so I've only found this out when trying to integrate in a downstream SDK. Should we add a test python script or sth?

#skip-changelog

@supervacuus

Copy link
Copy Markdown
Collaborator

Ouch, I wrongly assumed that this conditional path was somewhere stressed here. Yes, we should add a dummy test to include that path. While missing the macro-continuation backslashes was an accident, the removal of the last semicolon was intentional.

@vaind
vaind marked this pull request as draft June 23, 2025 18:24
Comment thread tests/test_unit.py
@vaind
vaind marked this pull request as ready for review June 25, 2025 07:43
@vaind
vaind requested a review from supervacuus June 25, 2025 08:29

@supervacuus supervacuus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, just the semicolon.

Comment thread tests/unit/sentry_testsupport.h Outdated
Comment thread tests/unit/sentry_testsupport.h Outdated
@supervacuus
supervacuus merged commit 3f7bbd6 into master Jun 25, 2025
33 of 34 checks passed
@supervacuus
supervacuus deleted the fix/tests-compilation-error branch June 25, 2025 09:11
BernhardMarconato pushed a commit to elgatosf/sentry-native that referenced this pull request Apr 21, 2026
…ry#1279)

* fix: compilation error if SENTRY_TEST_PATH_PREFIX is defined

* run unit tests with custom path prefix

* linter issue

* fix cmake.py

* Update tests/unit/sentry_testsupport.h
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