From 6b0f49454d9e939eea6e0a482c2a6f8dc8214e77 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sat, 23 Aug 2014 23:26:03 -0700 Subject: [PATCH] Disabling break on failure when not in VS. --- tools/alloy-test/alloy-test.cc | 3 +++ 1 file changed, 3 insertions(+) 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; }