Hi,
I just reproduced the same situation. I've been able to create a VS2017 project with native C++ that reproduce the problem.
I tried to add an image, but the upload process to the server transform the image so that it becomes unreadable. I keep it if necessary.
The project is based only on a main.cpp file (so that one can reproduce the problem even without my test project):
#include "isolator/isolator.h"
#include <iostream>
int demoFunction()
{
return 0;
}
int main()
{
std::cout << "Hello World!
";
FAKE_GLOBAL(demoFunction);
WHEN_CALLED(demoFunction()).Return(1);
int returnCode;
returnCode = demoFunction();
std::cout << "return Code = " << returnCode;
return returnCode;
}
Linked with the 4.1.3.0 version, compiled in x64 Debug, the returnCode variable values 1, but the executable exits with code 0.
This problem is annoying as I faced some tests crashing the test executable, but with the exit code 0, I only discovered the problem by reading the logs.
Let me know if you want me to send the project as well, or if there is a more dedicated process to report reproducible bugs.
Armand