]> granicus.if.org Git - taglib/commitdiff
Separate tests for fuzzed WAV files.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 1 Jan 2015 14:18:43 +0000 (23:18 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Thu, 1 Jan 2015 14:18:43 +0000 (23:18 +0900)
tests/test_wav.cpp

index 72efe4f680310d6788e60309c23a6cadabb46ed9..7367357a55f8271ea0e82de6fc7c3bee29935d42 100644 (file)
@@ -15,7 +15,8 @@ class TestWAV : public CppUnit::TestFixture
   CPPUNIT_TEST(testLength);
   CPPUNIT_TEST(testZeroSizeDataChunk);
   CPPUNIT_TEST(testStripTags);
-  CPPUNIT_TEST(testFuzzedFiles);
+  CPPUNIT_TEST(testFuzzedFile1);
+  CPPUNIT_TEST(testFuzzedFile2);
   CPPUNIT_TEST_SUITE_END();
 
 public:
@@ -70,11 +71,14 @@ public:
     delete f;
   }
 
-  void testFuzzedFiles()
+  void testFuzzedFile1()
   {
     RIFF::WAV::File f1(TEST_FILE_PATH_C("infloop.wav"));
     CPPUNIT_ASSERT(!f1.isValid());
+  }
 
+  void testFuzzedFile2()
+  {
     RIFF::WAV::File f2(TEST_FILE_PATH_C("segfault.wav"));
     CPPUNIT_ASSERT(f2.isValid());
   }