comparison data/fileio/test/svcore-data-fileio-test.cpp @ 1698:dbd13eb7dad1

Add tests for audio file readers presented with empty or nonsense input
author Chris Cannam
date Fri, 03 May 2019 13:33:53 +0100
parents a77fc6da288b
children 83cb6e9d769b
comparison
equal deleted inserted replaced
1690:ea1aa24ebf89 1698:dbd13eb7dad1
11 License, or (at your option) any later version. See the file 11 License, or (at your option) any later version. See the file
12 COPYING included with this distribution for more information. 12 COPYING included with this distribution for more information.
13 */ 13 */
14 14
15 #include "AudioFileReaderTest.h" 15 #include "AudioFileReaderTest.h"
16 #include "BogusAudioFileReaderTest.h"
16 #include "AudioFileWriterTest.h" 17 #include "AudioFileWriterTest.h"
17 #include "EncodingTest.h" 18 #include "EncodingTest.h"
18 #include "MIDIFileReaderTest.h" 19 #include "MIDIFileReaderTest.h"
19 #include "CSVFormatTest.h" 20 #include "CSVFormatTest.h"
20 #include "CSVStreamWriterTest.h" 21 #include "CSVStreamWriterTest.h"
63 if (QTest::qExec(&t, argc, argv) == 0) ++good; 64 if (QTest::qExec(&t, argc, argv) == 0) ++good;
64 else ++bad; 65 else ++bad;
65 } 66 }
66 67
67 { 68 {
69 BogusAudioFileReaderTest t;
70 if (QTest::qExec(&t, argc, argv) == 0) ++good;
71 else ++bad;
72 }
73
74 {
68 EncodingTest t(testDir); 75 EncodingTest t(testDir);
69 if (QTest::qExec(&t, argc, argv) == 0) ++good; 76 if (QTest::qExec(&t, argc, argv) == 0) ++good;
70 else ++bad; 77 else ++bad;
71 } 78 }
72 79