-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix unittests on windows(mingw) #12287
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
Fix unittests on windows(mingw) #12287
Conversation
@maciejbocianski, thank you for your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After some trouble configuring my environment I managed to get unittests build and run on Windows command line and in Gitbash for the first time. No need to use WSL any more.
Great work. Thank you, @maciejbocianski .
@@ -19,6 +19,16 @@ endmacro() | |||
|
|||
use_cxx14() | |||
|
|||
|
|||
if (MINGW) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that the right way? I would rather make equeue work on Windows and Mac (for that matter), by enabling POSIX for these platforms in the platform abstraction layer of equeue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point.
Updated
7fca1fc
to
adcd33b
Compare
@bulislaw are you happy with the update ? |
this PR conflicts with #12315 -- what is the preferred way to check for macOS? |
According to https://stackoverflow.com/questions/142508/how-do-i-check-os-with-a-preprocessor-directive/42040445 |
on macOS Catalina (latest) it doesn't work with just |
The website referenced in the SO answers says |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
#12315 has been merged |
adcd33b
to
b1af3d6
Compare
rebased |
@maciejbocianski Can you improve the commit msg (before we run CI) ? To include details about the fix (they are in the description above). |
- set equeue platform to posix for MINGW - enable PRIx formatting globally - remove redundant Semaphore implementation
b1af3d6
to
a2e5a34
Compare
done |
CI started |
Test run: FAILEDSummary: 1 of 11 test jobs failed Failed test jobs:
|
Tests restarted |
Summary of changes
When on mingw (windows):
equeue
platform to posixPRIx
formatting globallySemaphore
implementationImpact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers
@jamesbeyond
@michalpasztamobica - can you test on your side?