Disabling break on failure when not in VS.
This commit is contained in:
@@ -28,9 +28,12 @@ int main(std::vector<std::wstring>& args) {
|
|||||||
}
|
}
|
||||||
int ret = Catch::Session().run(int(args.size()), narrow_argv);
|
int ret = Catch::Session().run(int(args.size()), narrow_argv);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
#if XE_LIKE_WIN32
|
||||||
|
// Visual Studio kills the console on shutdown, so prevent that.
|
||||||
if (poly::debugging::IsDebuggerAttached()) {
|
if (poly::debugging::IsDebuggerAttached()) {
|
||||||
poly::debugging::Break();
|
poly::debugging::Break();
|
||||||
}
|
}
|
||||||
|
#endif // XE_LIKE_WIN32
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user