Skip to content

unit1307: tidy up Apple OS detection - #15461

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:unit1307-platf-detection
Closed

unit1307: tidy up Apple OS detection#15461
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:unit1307-platf-detection

Conversation

@vszakats

@vszakats vszakats commented Oct 30, 2024

Copy link
Copy Markdown
Member

Use __APPLE__ macro to detect Apple OS instead of relying on
the string in CURL_OS.

This also fixes detection with default CMake builds where CURL_OS is
Darwin. The code before this patch was expecting this substring in
lowercase.

@vszakats vszakats added tests tidy-up appleOS specific to an Apple operating system labels Oct 30, 2024
@vszakats vszakats changed the title unit1307: tidy up macOS detection unit1307: tidy up Apple OS detection Oct 30, 2024
@dfandrich

Copy link
Copy Markdown
Contributor

Analysis of PR #15461 at d5a2802a:

Test http/test_07_upload.py::TestUpload::test_07_22_upload_parallel_fail[0-h3] failed, which has NOT been flaky recently, so there could be a real issue in this PR.

Generated by Testclutch

@vszakats vszakats closed this in 329a8e9 Oct 31, 2024
@vszakats
vszakats deleted the unit1307-platf-detection branch October 31, 2024 08:09
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
Use `__APPLE__` macro to detect Apple OS instead of relying on
the string in `CURL_OS`.

This also fixes detection with default CMake builds where `CURL_OS` is
`Darwin`. The code before this patch was expecting this substring in
lowercase.

Closes curl#15461
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

appleOS specific to an Apple operating system tests tidy-up

Development

Successfully merging this pull request may close these issues.

3 participants