Mercurial > hg > svcore
changeset 1607:a77fc6da288b
Try to avoid interference with QtTest's own arg handling
author | Chris Cannam |
---|---|
date | Mon, 18 Feb 2019 11:37:41 +0000 |
parents | 4a7ebaaf9f53 |
children | 0e0947896fd3 |
files | data/fileio/test/svcore-data-fileio-test.cpp |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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; }