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

macos: use /tmp instead of /dev/shm #635

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

devtekve
Copy link

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

@devtekve devtekve marked this pull request as ready for review November 24, 2024 12:08
Copy link
Contributor

@adeebshihadeh adeebshihadeh left a 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?

@adeebshihadeh adeebshihadeh marked this pull request as draft November 28, 2024 19:03
@devtekve
Copy link
Author

devtekve commented Dec 4, 2024

I will , sorry ! I’ve been busy with MADS rewrite in SP

@devtekve devtekve marked this pull request as ready for review December 10, 2024 21:31
@@ -383,15 +390,15 @@ TEST_CASE("1 publisher, 1 slow subscriber", "[integration]")
msgq_msg_close(&msg1);
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this

Comment on lines +24 to +28
#ifdef __APPLE__
std::string full_path = "/tmp/";
#else
std::string full_path = "/dev/shm/";
#endif
Copy link
Contributor

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

Comment on lines +90 to +93
#ifdef __APPLE__
std::string full_path = "/tmp/";
#else
std::string full_path = "/dev/shm/";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@adeebshihadeh
Copy link
Contributor

/dev/shm and /tmp should only be defined once

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