Disabling break on failure when not in VS.

This commit is contained in:
Ben Vanik 2014-08-23 23:26:03 -07:00
parent 33ff2744ce
commit 6b0f49454d
1 changed files with 3 additions and 0 deletions

View File

@ -28,9 +28,12 @@ int main(std::vector<std::wstring>& args) {
}
int ret = Catch::Session().run(int(args.size()), narrow_argv);
if (ret) {
#if XE_LIKE_WIN32
// Visual Studio kills the console on shutdown, so prevent that.
if (poly::debugging::IsDebuggerAttached()) {
poly::debugging::Break();
}
#endif // XE_LIKE_WIN32
}
return ret;
}