THRIFT-3308: Fix broken test cases for 0.9.3 release candidate
client: build
Patch: jfarrell
Fix broken test cases, make check now passes with all files in dist
diff --git a/lib/cpp/test/TPipeInterruptTest.cpp b/lib/cpp/test/TPipeInterruptTest.cpp
index b0e246d..e2f2489 100644
--- a/lib/cpp/test/TPipeInterruptTest.cpp
+++ b/lib/cpp/test/TPipeInterruptTest.cpp
@@ -17,6 +17,8 @@
* under the License.
*/
+#ifdef _WIN32
+
#include <boost/test/test_tools.hpp>
#include <boost/test/unit_test_suite.hpp>
@@ -74,7 +76,7 @@
for (;;)
{
TPipe client("TPipeInterruptTest");
- client.setConnectTimeout(1);
+ client.setConnTimeout(1);
client.open();
}
} catch (...) { /*just testing for crashes*/ }
@@ -84,3 +86,4 @@
}
BOOST_AUTO_TEST_SUITE_END()
+#endif