I’m trying to run unit tests in an Mbed project. I’ve followed the instructions at Unit testing - Debugging and testing | Mbed OS 6 Documentation. I’m on MacOS 11.1.
I can create a new program using the mbed-os-empty template, but when I run
mbed test --unittests from the root of the program directory, I get a “Building unit tests failed.” error.
The error seems to originate in the
If I navigate to that file in Mbed Studio, line 22 has the
sys/types.h text underlined with a red squiggle (hovering over it says “file not found”).
That seems to cause a cascade of errors, including curiously enough some files buried in the MacOSX11.1.sdk directory (why it’s even looking for stuff in the Mac system SDK is beyond me).