Skip to content

Add native method to query Mach-O SDK version at runtime#3300

Open
tobiasmelcher wants to merge 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:machos_sdk_version
Open

Add native method to query Mach-O SDK version at runtime#3300
tobiasmelcher wants to merge 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:machos_sdk_version

Conversation

@tobiasmelcher
Copy link
Copy Markdown
Contributor

The macOS runtime can report incorrect OS versions (10.16 instead of actual version) when the executable's linked SDK is too old. Add OS.getMachOSDKVersion() to extract the SDK version from the LC_BUILD_VERSION load command in the main executable's Mach-O header.

This allows SWT to detect the SDK version the running JVM was built against, enabling proper diagnostics for version reporting issues.

The macOS runtime can report incorrect OS versions (10.16 instead of
actual version) when the executable's linked SDK is too old. Add
OS.getMachOSDKVersion() to extract the SDK version from the
LC_BUILD_VERSION load command in the main executable's Mach-O header.

This allows SWT to detect the SDK version the running JVM was built
against, enabling proper diagnostics for version reporting issues.
@github-actions
Copy link
Copy Markdown
Contributor

Test Results (macos)

 56 files   -     2   56 suites   - 2   2s ⏱️ - 7m 38s
 26 tests  - 4 545   26 ✅  - 4 298  0 💤  - 247  0 ❌ ±0 
104 runs   - 2 098  104 ✅  - 2 034  0 💤  -  64  0 ❌ ±0 

Results for commit a23114a. ± Comparison against base commit f33b79e.

This pull request removes 4545 tests.
org.eclipse.swt.tests.junit.DPIUtilTests ‑ scaleDownFloat
org.eclipse.swt.tests.junit.DPIUtilTests ‑ scaleUpInteger
org.eclipse.swt.tests.junit.JSVGRasterizerTest ‑ testRasterizeWithTargetSize
org.eclipse.swt.tests.junit.JSVGRasterizerTest ‑ testRasterizeWithTargetSizeHavingInvalidHeight
org.eclipse.swt.tests.junit.JSVGRasterizerTest ‑ testRasterizeWithTargetSizeHavingInvalidWidth
org.eclipse.swt.tests.junit.JSVGRasterizerTest ‑ testRasterizeWithTargetSizeWithInvalidSVG
org.eclipse.swt.tests.junit.JSVGRasterizerTest ‑ testRasterizeWithZoom
org.eclipse.swt.tests.junit.JSVGRasterizerTest ‑ testRasterizeWithZoomNegative
org.eclipse.swt.tests.junit.JSVGRasterizerTest ‑ testRasterizeWithZoomWithInvalidSVG
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_SWT ‑ test_errorI
…

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