# HG changeset patch # User Chris Cannam # Date 1535987696 -3600 # Node ID 4700b7188f6ca01999b14b3f49c48dd67359d78c # Parent 2057423c88fe4b09dbb90d15e2868897ed4a000b Avoid using sv debug classes before app name set diff -r 2057423c88fe -r 4700b7188f6c data/fileio/test/svcore-data-fileio-test.cpp --- 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;