Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Unexpected paths?

Options
LegacyForum
LegacyForum Posts: 1,664 ✭✭
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

  • LegacyForum
    LegacyForum Posts: 1,664 ✭✭
    Options
    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.