This topic provides details about results in the Timeout category.
A Fix Unit Test Problems> Assertion Failures> Timeout message indicates that C++test timed out when trying to test a class.
Double-click the timeout message to determine the which test case is responsible for the timeout. First, determine why the code under test is causing the test case to hang.
Response options are:
- If the behavior is correct and the tested code is just slow, change the timeout setting to a larger value in the Test Configuration’s Execution> Runtime tab. See Generation Tab Settings: Defining How Test Cases are Generated for details.
- If it’s possible to stub out the code that causes the test case to hang, you can write a stub method (see Adding and Modifying Stubs for details).
- Fix the code that hangs.