Only wait when running index tests on windows.

This commit is contained in:
Jacob Dufault 2017-11-27 18:27:16 -08:00
parent f5b7b62a4a
commit 68f6d34693

View File

@ -3222,8 +3222,10 @@ int main(int argc, char** argv) {
if (HasOption(options, "--test-index")) { if (HasOption(options, "--test-index")) {
print_help = false; print_help = false;
RunIndexTests(); RunIndexTests();
#if defined(_WIN32)
std::cerr << std::endl << "[Enter] to exit" << std::endl; std::cerr << std::endl << "[Enter] to exit" << std::endl;
std::cin.get(); std::cin.get();
#endif
} }
if (HasOption(options, "--language-server")) { if (HasOption(options, "--language-server")) {