# HG changeset patch # User Chris Cannam # Date 1550489861 0 # Node ID a77fc6da288ba198f06dfa8ae06d60c1af086f04 # Parent 4a7ebaaf9f53b85d82aae1a1ffe08339ebe01909 Try to avoid interference with QtTest's own arg handling diff -r 4a7ebaaf9f53 -r a77fc6da288b data/fileio/test/svcore-data-fileio-test.cpp --- a/data/fileio/test/svcore-data-fileio-test.cpp Tue Feb 12 15:10:30 2019 +0000 +++ b/data/fileio/test/svcore-data-fileio-test.cpp Mon Feb 18 11:37:41 2019 +0000 @@ -39,14 +39,15 @@ testDir = "../sonic-visualiser/svcore/data/fileio/test"; #endif - if (argc > 1) { - testDir = argv[1]; - } - QCoreApplication app(argc, argv); app.setOrganizationName("sonic-visualiser"); app.setApplicationName("test-svcore-data-fileio"); + if (argc == 3 && string(argv[1]) == "--testdir") { + testDir = argv[2]; + argc = 1; + } + if (testDir != "") { SVCERR << "Setting test directory base path to \"" << testDir << "\"" << endl; }