I'm using CppUTest version 3.8 to write C++ unit tests for an Atmel ARM, SAM4E16E. I am attempting to use termite terminal to view my test results, which are sent through a UART. When using CppUTest 3.7, the unit tests were running but not displaying the correct data on the termite terminal. I decided to upgrade to CppUTest 3.8.
When upgrading to 3.8, I noticed that there is now Pthreads used in the framework. I built the CppUTest library by using the UTestPlatform that was provided in the downloadable zip file cpputest-3.8->src->Platforms->Gcc->UTestPlatform.cpp. I got the following errors:
I looked for the location of where pthread is defined, which is located in <.../sys/types.h>. I tried adding this to the include list, but I am still getting the same errors.
Any suggestions? Is there an issue with the Gcc compiler for Atmel Studio 7 and pthreads?
EDIT: I get an output when I comment out the pthread functions in the UTestPlatform, but it is not displaying the correct information.