X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/716e748b2fe86beba88b390f4e6c81d2e268035a..7e3204b45cf8e1bb882b314d456e75f2a22850d7:/tests/archive/ziptest.cpp diff --git a/tests/archive/ziptest.cpp b/tests/archive/ziptest.cpp index c6a64a099f..4204c7dfb7 100644 --- a/tests/archive/ziptest.cpp +++ b/tests/archive/ziptest.cpp @@ -233,8 +233,11 @@ ArchiveTestSuite *ziptest::makeSuite() { ArchiveTestSuite::makeSuite(); -#ifndef WXARC_NO_POPEN - // if have popen then can check the piped output of 'zip - -' +#if !defined WXARC_NO_POPEN && !defined __WXMSW__ + // If have popen then can check the piped output of 'zip - -'. + // The gnuwin32 build of infozip does work for this, e.g.: + // C:\>echo test data to pipe through zip | zip -q > foo.zip + // doesn't produce a valid zip, so disabled for now. if (IsInPath(_T("zip"))) for (int options = 0; options <= PipeIn; options += PipeIn) { string name = Description(_T("ZipPipeTestCase"), options, @@ -258,11 +261,13 @@ CppUnit::Test *ziptest::makeTest( return NULL; if (genericInterface) + { return new ArchiveTestCase( descr, new wxZipClassFactory, options, archiver, unarchiver); - else - return new ZipTestCase(descr, options, archiver, unarchiver); + } + + return new ZipTestCase(descr, options, archiver, unarchiver); } CPPUNIT_TEST_SUITE_REGISTRATION(ziptest);