Mercurial > hg > svcore
comparison data/model/test/svcore-data-model-test.cpp @ 1527:710e6250a401 zoom
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 17 Sep 2018 13:51:14 +0100 |
parents | 5afbac960a30 |
children | a7485c1bdba5 |
comparison
equal
deleted
inserted
replaced
1324:d4a28d1479a8 | 1527:710e6250a401 |
---|---|
22 int main(int argc, char *argv[]) | 22 int main(int argc, char *argv[]) |
23 { | 23 { |
24 int good = 0, bad = 0; | 24 int good = 0, bad = 0; |
25 | 25 |
26 QCoreApplication app(argc, argv); | 26 QCoreApplication app(argc, argv); |
27 app.setOrganizationName("Sonic Visualiser"); | 27 app.setOrganizationName("sonic-visualiser"); |
28 app.setApplicationName("test-model"); | 28 app.setApplicationName("test-model"); |
29 | 29 |
30 { | 30 { |
31 TestFFTModel t; | 31 TestFFTModel t; |
32 if (QTest::qExec(&t, argc, argv) == 0) ++good; | 32 if (QTest::qExec(&t, argc, argv) == 0) ++good; |
33 else ++bad; | 33 else ++bad; |
34 } | 34 } |
35 | 35 |
36 if (bad > 0) { | 36 if (bad > 0) { |
37 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl; | 37 SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl; |
38 return 1; | 38 return 1; |
39 } else { | 39 } else { |
40 cerr << "All tests passed" << endl; | 40 SVCERR << "All tests passed" << endl; |
41 return 0; | 41 return 0; |
42 } | 42 } |
43 } | 43 } |
44 | 44 |