samedi 18 juillet 2015

Throwin std::exception causes VS 2013 unit testing module crash

I've created unit test project for my C++ application in Visual Studio 2013. Unfortunately, it does not correctly handles exceptions during test: If i run test that just does following:

throw std::runtime_exception("hello!");

I see Windows "application has stopped working" box telling me that vstest.executionengine.exe has crashed. Meanwhile, Test Explorer in visual studio shows that this test has passed without errors.

How to properly terminate test execution in C++?

Aucun commentaire:

Enregistrer un commentaire