Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit_platform tests #3936

Merged
merged 1 commit into from
Mar 2, 2023
Merged

Conversation

davisp
Copy link
Contributor

@davisp davisp commented Mar 1, 2023

I tried using platform.h in a separate PR which broke the build on Windows from what was apparently an incorrectly set is_os_windows setting. I'm adding these tests to assert that OS type is correctly identified.

Note that I'm relying on CMake's CMAKE_SYSTEM_NAME variable here to do platform detection. This means that our OS detection is only as good as CMake's detection which I have no reason to distrust. Secondly, I'm ignoring any platform that isn't Windows, macOS, or Linux and just logging an error. This is on purpose so that these don't suddenly break a bunch of downstream package builds.


TYPE: IMPROVEMENT
DESC: Add unit tests for tiledb/common/platform.h

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #25878: Add unit_platform tests.

I tried using platform.h in a separate PR which broke the build on
Windows from what was apparently an incorrectly set `is_os_windows`
setting. I'm adding these tests to assert that OS type is correctly
identified.

Note that I'm relying on CMake's `CMAKE_SYSTEM_NAME` variable here to do
platform detection. This means that our OS detection is only as good as
CMake's detection which I have no reason to distrust. Secondly, I'm
ignoring any platform that isn't Windows, macOS, or Linux and just
logging an error. This is on purpose so that these don't suddenly break
a bunch of downstream package builds.
@davisp davisp force-pushed the pd/sc-25878/add-unit-platform-tests branch from 1428763 to 2263143 Compare March 1, 2023 18:04
@ihnorton ihnorton merged commit 4f4538a into dev Mar 2, 2023
@ihnorton ihnorton deleted the pd/sc-25878/add-unit-platform-tests branch March 2, 2023 04:20
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