Remove WXTEST_WITH_CONDITION macro to simplify the code

It was only used as part of WXTEST_WITH_GZIP_CONDITION which was
necessary only to support running the tests on systems using zlib < 1.2
which is not a concern since many years any more, so simplify the code
by using the simple non-conditional CPPUNIT_TEST instead and drop the
helper macros which were required only for this.
This commit is contained in:
Vadim Zeitlin
2017-10-30 14:16:11 +01:00
parent b5aaede7b1
commit 9f609a8148
2 changed files with 7 additions and 31 deletions

View File

@@ -29,9 +29,6 @@
using std::string;
#define WXTEST_WITH_GZIP_CONDITION(testMethod) \
WXTEST_WITH_CONDITION( COMPOSE_TEST_NAME(zlibStream), wxZlibInputStream::CanHandleGZip() && wxZlibOutputStream::CanHandleGZip(), testMethod )
#define DATABUFFER_SIZE 1024
static const wxString FILENAME_GZ = wxT("zlibtest.gz");
@@ -76,16 +73,16 @@ public:
CPPUNIT_TEST(TestStream_ZLib_NoComp);
CPPUNIT_TEST(TestStream_ZLib_SpeedComp);
CPPUNIT_TEST(TestStream_ZLib_BestComp);
WXTEST_WITH_GZIP_CONDITION(TestStream_GZip_Default);
WXTEST_WITH_GZIP_CONDITION(TestStream_GZip_NoComp);
WXTEST_WITH_GZIP_CONDITION(TestStream_GZip_SpeedComp);
WXTEST_WITH_GZIP_CONDITION(TestStream_GZip_BestComp);
WXTEST_WITH_GZIP_CONDITION(TestStream_GZip_Dictionary);
WXTEST_WITH_GZIP_CONDITION(TestStream_ZLibGZip);
CPPUNIT_TEST(TestStream_GZip_Default);
CPPUNIT_TEST(TestStream_GZip_NoComp);
CPPUNIT_TEST(TestStream_GZip_SpeedComp);
CPPUNIT_TEST(TestStream_GZip_BestComp);
CPPUNIT_TEST(TestStream_GZip_Dictionary);
CPPUNIT_TEST(TestStream_ZLibGZip);
CPPUNIT_TEST(Decompress_BadData);
CPPUNIT_TEST(Decompress_wx251_zlib114_Data_NoHeader);
CPPUNIT_TEST(Decompress_wx251_zlib114_Data_ZLib);
WXTEST_WITH_GZIP_CONDITION(Decompress_gzip135Data);
CPPUNIT_TEST(Decompress_gzip135Data);
CPPUNIT_TEST_SUITE_END();
protected: