Mercurial > hg > svcore
comparison data/fileio/test/svcore-data-fileio-test.cpp @ 1428:87ae75da6527
Convert some cerrs to SVCERRs. Apart from anything else, this makes MSVC2017 happy
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 14:43:40 +0000 |
parents | 667e369cfeab |
children | 48e9f538e6e9 |
comparison
equal
deleted
inserted
replaced
1427:622d193a00dc | 1428:87ae75da6527 |
---|---|
32 // get QMAKE_POST_LINK to add an arg to its command successfully on Windows | 32 // get QMAKE_POST_LINK to add an arg to its command successfully on Windows |
33 testDir = "../sonic-visualiser/svcore/data/fileio/test"; | 33 testDir = "../sonic-visualiser/svcore/data/fileio/test"; |
34 #endif | 34 #endif |
35 | 35 |
36 if (argc > 1) { | 36 if (argc > 1) { |
37 cerr << "argc = " << argc << endl; | 37 SVCERR << "argc = " << argc << endl; |
38 testDir = argv[1]; | 38 testDir = argv[1]; |
39 } | 39 } |
40 | 40 |
41 if (testDir != "") { | 41 if (testDir != "") { |
42 cerr << "Setting test directory base path to \"" << testDir << "\"" << endl; | 42 SVCERR << "Setting test directory base path to \"" << testDir << "\"" << endl; |
43 } | 43 } |
44 | 44 |
45 QCoreApplication app(argc, argv); | 45 QCoreApplication app(argc, argv); |
46 app.setOrganizationName("sonic-visualiser"); | 46 app.setOrganizationName("sonic-visualiser"); |
47 app.setApplicationName("test-fileio"); | 47 app.setApplicationName("test-fileio"); |
69 if (QTest::qExec(&t, argc, argv) == 0) ++good; | 69 if (QTest::qExec(&t, argc, argv) == 0) ++good; |
70 else ++bad; | 70 else ++bad; |
71 } | 71 } |
72 | 72 |
73 if (bad > 0) { | 73 if (bad > 0) { |
74 cerr << "\n********* " << bad << " test suite(s) failed!\n" << endl; | 74 SVCERR << "\n********* " << bad << " test suite(s) failed!\n" << endl; |
75 return 1; | 75 return 1; |
76 } else { | 76 } else { |
77 cerr << "All tests passed" << endl; | 77 SVCERR << "All tests passed" << endl; |
78 return 0; | 78 return 0; |
79 } | 79 } |
80 } | 80 } |
81 | 81 |