From 69b031c43ce2bbf67f391f30834aa240cb8525f6 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sat, 24 Oct 2015 11:55:58 +0100 Subject: [PATCH] Workaround test failure on cygwin64 --- test/Integration.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/Integration.cpp b/test/Integration.cpp index 110d4d97..e4e84c40 100644 --- a/test/Integration.cpp +++ b/test/Integration.cpp @@ -72,7 +72,13 @@ public: FlushIfCan(m_device); } void Close() { - m_device->close(); +#ifdef __CYGWIN__ +#ifdef __x86_64__ + // Qt on cygwin64 silently doesn't send the rest of buffer from socket without this line + sleep(1); +#endif +#endif + m_device->disconnectFromHost(); } private: