comparison data/fileio/test/svcore-data-fileio-test.cpp @ 1345:c0cdacc47f4e 3.0-integration

Add filename encoding tests
author Chris Cannam
date Fri, 06 Jan 2017 12:11:08 +0000
parents 24c0d4c5356e
children 75ad55315db4
comparison
equal deleted inserted replaced
1344:980afe3f1a76 1345:c0cdacc47f4e
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 "EncodingTest.h"
16 17
17 #include <QtTest> 18 #include <QtTest>
18 19
19 #include <iostream> 20 #include <iostream>
20 21
30 AudioFileReaderTest t; 31 AudioFileReaderTest t;
31 if (QTest::qExec(&t, argc, argv) == 0) ++good; 32 if (QTest::qExec(&t, argc, argv) == 0) ++good;
32 else ++bad; 33 else ++bad;
33 } 34 }
34 35
36 {
37 EncodingTest t;
38 if (QTest::qExec(&t, argc, argv) == 0) ++good;
39 else ++bad;
40 }
41
35 if (bad > 0) { 42 if (bad > 0) {
36 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl; 43 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl;
37 return 1; 44 return 1;
38 } else { 45 } else {
39 cerr << "All tests passed" << endl; 46 cerr << "All tests passed" << endl;