The DPP (Dining Philosophers Problem) example shows how to use QUTest in various stages of application development, including not only unit testing, but also integration testing as well.
This example is available in both the QP/C as well as the QP/C++ frameworks. The complete code for the DPP example is provided in the directory <qpc|qpcpp>\examples\qutest\dpp\test.
To run the DPP test (on Windows), open a command prompt and type:
qspy
This will start the QSPY host utility with the TCP/IP connection to the Target.
Next, open a second command prompt window and type:
cd C:\qp\<qpc|qpcpp>\examples\qutest\dpp\test_philo make
This will build the test fixture as a host executable, and then it will run the test script (in Python). The screenshot below shows the output produced in these two command-prompt windows.