diff --git a/tools/alloy-test/alloy-test.cc b/tools/alloy-test/alloy-test.cc index 4c530cf16..0f3e6ce19 100644 --- a/tools/alloy-test/alloy-test.cc +++ b/tools/alloy-test/alloy-test.cc @@ -28,9 +28,12 @@ int main(std::vector& 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; }