From 68f6d34693ea30aeb703cf03d8cc4fe528b2d9a3 Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Mon, 27 Nov 2017 18:27:16 -0800 Subject: [PATCH] Only wait when running index tests on windows. --- src/command_line.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/command_line.cc b/src/command_line.cc index 75e93c39..aeb62c5d 100644 --- a/src/command_line.cc +++ b/src/command_line.cc @@ -3222,8 +3222,10 @@ int main(int argc, char** argv) { if (HasOption(options, "--test-index")) { print_help = false; RunIndexTests(); +#if defined(_WIN32) std::cerr << std::endl << "[Enter] to exit" << std::endl; std::cin.get(); +#endif } if (HasOption(options, "--language-server")) {