Skip to content

chore: Skip getenv_double test on PlayStation#1547

Merged
tustanivsky merged 4 commits into
masterfrom
fix/ps5-test-build
Mar 2, 2026
Merged

chore: Skip getenv_double test on PlayStation#1547
tustanivsky merged 4 commits into
masterfrom
fix/ps5-test-build

Conversation

@tustanivsky

@tustanivsky tustanivsky commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator

PlayStation doesn't provide setenv/unsetenv in its C library, causing linker errors when building the unit tests. The getenv_double test relies on these POSIX functions to set up environment variables, so it cannot run meaningfully on this platform.

This PR wraps the test body with #if !defined(SENTRY_PLATFORM_PS) to skip it on PlayStation while keeping the test active on all other platforms.

#skip-changelog

@tustanivsky tustanivsky requested a review from jpnurmi March 2, 2026 12:22
Comment thread tests/unit/test_utils.c Outdated
Co-authored-by: J-P Nurmi <jpnurmi@gmail.com>
@tustanivsky tustanivsky merged commit 2d6b100 into master Mar 2, 2026
47 checks passed
@tustanivsky tustanivsky deleted the fix/ps5-test-build branch March 2, 2026 14:22
BernhardMarconato pushed a commit to elgatosf/sentry-native that referenced this pull request Apr 21, 2026
* chore: fix missing PS5 function declerations

* Revert function decl

* Disable getenv_double test on PS5

* Update tests/unit/test_utils.c

Co-authored-by: J-P Nurmi <jpnurmi@gmail.com>

---------

Co-authored-by: J-P Nurmi <jpnurmi@gmail.com>
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