Skip to content
Snippets Groups Projects
Commit 31f33c9a authored by Janik Zikovsky's avatar Janik Zikovsky
Browse files

Refs #4472 ping doesn't work on Windows so you're on you're own

when the server is down :)
parent df049e84
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,13 @@ public:
*/
bool skipTests()
{
#ifdef WIN32
// I don't know how to get exit status from windows.
return false;
#else
// Ping once, with a 1 second wait.
std::string cmdstring = "ping download.mantidproject.org -c 1 -w 1";
int status;
status = system(cmdstring.c_str());
if (status == -1)
......@@ -43,6 +49,8 @@ public:
return true;
}
return false;
#endif
}
void testInit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment