- CPPUNIT_TEST_SUITE(socketStream);
- // Base class stream tests the socketStream supports.
- CPPUNIT_TEST(Input_GetC);
-
- // This one fails because wxSocketInputStream::Eof() is not implemented
- // correctly
- //CPPUNIT_TEST(Input_Read);
+ // repeat all socket tests several times with different socket flags, so we
+ // define this macro which is used several times in the test suite
+ //
+ // there must be some more elegant way to do this but I didn't find it...
+#define ALL_SOCKET_TESTS() \
+ CPPUNIT_TEST(Input_GetC); \
+ CPPUNIT_TEST(Input_Eof); \
+ CPPUNIT_TEST(Input_Read); \
+ CPPUNIT_TEST(Input_LastRead); \
+ CPPUNIT_TEST(Input_CanRead); \
+ CPPUNIT_TEST(Input_Peek); \
+ CPPUNIT_TEST(Input_Ungetch); \
+ \
+ CPPUNIT_TEST(Output_PutC); \
+ CPPUNIT_TEST(Output_Write); \
+ CPPUNIT_TEST(Output_LastWrite)