comparison base/test/main.cpp @ 1027:ce1077bd663a cxx11

Merge from default branch
author Chris Cannam
date Mon, 09 Feb 2015 10:31:07 +0000
parents eecf544bed92
children
comparison
equal deleted inserted replaced
1011:dbb7f0ab011e 1027:ce1077bd663a
11 COPYING included with this distribution for more information. 11 COPYING included with this distribution for more information.
12 */ 12 */
13 13
14 #include "TestRangeMapper.h" 14 #include "TestRangeMapper.h"
15 #include "TestPitch.h" 15 #include "TestPitch.h"
16 #include "TestRealTime.h"
17 #include "TestStringBits.h"
16 18
17 #include <QtTest> 19 #include <QtTest>
18 20
19 #include <iostream> 21 #include <iostream>
20 22
34 { 36 {
35 TestPitch t; 37 TestPitch t;
36 if (QTest::qExec(&t, argc, argv) == 0) ++good; 38 if (QTest::qExec(&t, argc, argv) == 0) ++good;
37 else ++bad; 39 else ++bad;
38 } 40 }
41 {
42 TestRealTime t;
43 if (QTest::qExec(&t, argc, argv) == 0) ++good;
44 else ++bad;
45 }
46 {
47 TestStringBits t;
48 if (QTest::qExec(&t, argc, argv) == 0) ++good;
49 else ++bad;
50 }
39 51
40 if (bad > 0) { 52 if (bad > 0) {
41 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl; 53 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl;
42 return 1; 54 return 1;
43 } else { 55 } else {