diff 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
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;