Unexpected paths?

LegacyForumLegacyForum Posts: 1,669 ✭✭
edited December 2016 in C/C++test
Unexpected paths?
What, by definition, are 'unexpected paths' ? From what I can tell, the manual does not say. I am speculating that, in the case of an if () {} else {} construct, the 'if' path is the 'expected' one and the 'else' path is the unexpected one. Is this the case? If so, where does this terminology come from?

Comments

  • LegacyForumLegacyForum Posts: 1,669 ✭✭
    Hello dmf

    An unexpected path occurs when an access violation (e.g. dividing by zero, access violation, etc.) is not caught in a try-catch block. Therefore if your source code does not contain the try-catch protection, and you receive an access violation, C++Test will report an unexpected path.
Sign In or Register to comment.