Open phillipjohnston opened 2 years ago
Failure is within posix_tests (removing from build yields test pass).
Ok, there does seem to be either a problem with the thread test, OR that is just complicating things and making debugging harder. When I remove the thread test case and fire up gdb, I see this now:
embvm-core_catch2_test: ../src/os/posix/posix_msg_queue.hpp:162: os::posix::MessageQueue<TType>::MessageQueue(size_t) [with TType = unsigned int; size_t = long unsigned int]: Assertion `handle_ != -1' failed.
``
Removing both thread test + message queue test returns us to passing status. So that narrows it down to a combination of two issues.
Looking at the message queue, I have not confirmed the problem but naming is definitely wrong. 1) need to have a solution for unique names, and 2) need ot follow the naming requirements: https://man7.org/linux/man-pages/man7/mq_overview.7.html (e.g., /embvmmq).
Simplest solution would be to have a string of 3 numerical characters that increment and are appended to the basic queue name.