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?

LegacyForum
Posts: 1,664 ✭✭
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?
Tagged:
0
Comments
-
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.0