'VectorCast vs GTest for unit tests

I am a newbie at VectorCast. I have developed some unit tests with VectorCast. But I am still not confident with VectorCast(maybe, I am wrong:) ).

For unit tests, I don't think VectorCast could work well as GTest under some occasion, e.g: the code may cause a segmentation fault.

Since the VectorCast does actually run the program, I don't think it could point the segmentation fault.

Could somebody shed some light on this matter? And simple example in C++ is appreciated.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source