-
Notifications
You must be signed in to change notification settings - Fork 253
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
macos: use /tmp instead of /dev/shm #635
base: master
Are you sure you want to change the base?
macos: use /tmp instead of /dev/shm #635
Conversation
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.
Can you pull this out into a constant to reduce all the ifdef everywhere?
I will , sorry ! I’ve been busy with MADS rewrite in SP |
@@ -383,15 +390,15 @@ TEST_CASE("1 publisher, 1 slow subscriber", "[integration]") | |||
msgq_msg_close(&msg1); | |||
} | |||
} | |||
|
|||
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.
revert this
#ifdef __APPLE__ | ||
std::string full_path = "/tmp/"; | ||
#else | ||
std::string full_path = "/dev/shm/"; | ||
#endif |
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.
this should be pulled out
#ifdef __APPLE__ | ||
std::string full_path = "/tmp/"; | ||
#else | ||
std::string full_path = "/dev/shm/"; |
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.
same here
|
In macos a lot of the tests in OP still seem to rely on "/dev/shm" so this, alongside with commaai/openpilot#34097 should unblock those cases