comparison data/fileio/test/svcore-data-fileio-test.cpp @ 1504:4700b7188f6c

Avoid using sv debug classes before app name set
author Chris Cannam
date Mon, 03 Sep 2018 16:14:56 +0100
parents a12fd0456f0c
children 64ef24ebb19c
comparison
equal deleted inserted replaced
1503:2057423c88fe 1504:4700b7188f6c
33 // get QMAKE_POST_LINK to add an arg to its command successfully on Windows 33 // get QMAKE_POST_LINK to add an arg to its command successfully on Windows
34 testDir = "../sonic-visualiser/svcore/data/fileio/test"; 34 testDir = "../sonic-visualiser/svcore/data/fileio/test";
35 #endif 35 #endif
36 36
37 if (argc > 1) { 37 if (argc > 1) {
38 SVCERR << "argc = " << argc << endl;
39 testDir = argv[1]; 38 testDir = argv[1];
40 }
41
42 if (testDir != "") {
43 SVCERR << "Setting test directory base path to \"" << testDir << "\"" << endl;
44 } 39 }
45 40
46 QCoreApplication app(argc, argv); 41 QCoreApplication app(argc, argv);
47 app.setOrganizationName("sonic-visualiser"); 42 app.setOrganizationName("sonic-visualiser");
48 app.setApplicationName("test-fileio"); 43 app.setApplicationName("test-fileio");
44
45 if (testDir != "") {
46 SVCERR << "Setting test directory base path to \"" << testDir << "\"" << endl;
47 }
49 48
50 { 49 {
51 AudioFileReaderTest t(testDir); 50 AudioFileReaderTest t(testDir);
52 if (QTest::qExec(&t, argc, argv) == 0) ++good; 51 if (QTest::qExec(&t, argc, argv) == 0) ++good;
53 else ++bad; 52 else ++bad;