Mercurial > hg > svcore
changeset 1504:4700b7188f6c
Avoid using sv debug classes before app name set
author | Chris Cannam |
---|---|
date | Mon, 03 Sep 2018 16:14:56 +0100 |
parents | 2057423c88fe |
children | d7fdc77252c6 |
files | data/fileio/test/svcore-data-fileio-test.cpp |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/data/fileio/test/svcore-data-fileio-test.cpp Fri Aug 31 15:15:31 2018 +0100 +++ b/data/fileio/test/svcore-data-fileio-test.cpp Mon Sep 03 16:14:56 2018 +0100 @@ -35,18 +35,17 @@ #endif if (argc > 1) { - SVCERR << "argc = " << argc << endl; testDir = argv[1]; } - if (testDir != "") { - SVCERR << "Setting test directory base path to \"" << testDir << "\"" << endl; - } - QCoreApplication app(argc, argv); app.setOrganizationName("sonic-visualiser"); app.setApplicationName("test-fileio"); + if (testDir != "") { + SVCERR << "Setting test directory base path to \"" << testDir << "\"" << endl; + } + { AudioFileReaderTest t(testDir); if (QTest::qExec(&t, argc, argv) == 0) ++good;