I want to be able to run MSBuild to get an executable, then run that to check if it crashes for some reason.
Currently, what I’m doing is just
- MSBuild.exe MySol.sln [FLAGS]
- START /WAIT Bin/Executable.exe
It refuses to return an error despite crashing on my local build.
I’ve even tried using ofstream to generate a file, append a file, replace a file.
I’ve also tried try catch, return error 1, exit 1.
I’ve also tried using
|| travis_terminate 1, which I’ve realised is deprecated. I’ve also tried exit 1. Also tried
|| bash -c "exit 1;"
All those failed to work. I’m convinced that it didn’t run at all. Can anybody advice how do I get an executable from compiling a VS2017 project to work?
I’ve only managed to use g++ to just return 0 and 1 for testing. It’s working fine. But for some reason running my executable using VS Project, seem to not start at all.
Can anybody advice? Thanks in advanced!