Mercurial > hg > svcore
diff data/fileio/test/EncodingTest.h @ 1428:87ae75da6527
Convert some cerrs to SVCERRs. Apart from anything else, this makes MSVC2017 happy
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 14:43:40 +0000 |
parents | aadfb395e933 |
children | 0773b34d987f |
line wrap: on
line diff
--- a/data/fileio/test/EncodingTest.h Mon Dec 11 09:28:40 2017 +0000 +++ b/data/fileio/test/EncodingTest.h Thu Mar 01 14:43:40 2018 +0000 @@ -82,11 +82,11 @@ void init() { if (!QDir(encodingDir).exists()) { - cerr << "ERROR: Audio encoding file directory \"" << encodingDir << "\" does not exist" << endl; + SVCERR << "ERROR: Audio encoding file directory \"" << encodingDir << "\" does not exist" << endl; QVERIFY2(QDir(encodingDir).exists(), "Audio encoding file directory not found"); } if (!QDir(outDir).exists() && !QDir().mkpath(outDir)) { - cerr << "ERROR: Audio out directory \"" << outDir << "\" does not exist and could not be created" << endl; + SVCERR << "ERROR: Audio out directory \"" << outDir << "\" does not exist and could not be created" << endl; QVERIFY2(QDir(outDir).exists(), "Audio out directory not found and could not be created"); } } @@ -161,17 +161,17 @@ found = true; QString expected = QString::fromUtf8(mapping[m][1]); if (title != expected) { - cerr << "Title does not match expected: codepoints are" << endl; - cerr << "Title (" << title.length() << "ch): "; + SVCERR << "Title does not match expected: codepoints are" << endl; + SVCERR << "Title (" << title.length() << "ch): "; for (int i = 0; i < title.length(); ++i) { - cerr << title[i].unicode() << " "; + SVCERR << title[i].unicode() << " "; } - cerr << endl; - cerr << "Expected (" << expected.length() << "ch): "; + SVCERR << endl; + SVCERR << "Expected (" << expected.length() << "ch): "; for (int i = 0; i < expected.length(); ++i) { - cerr << expected[i].unicode() << " "; + SVCERR << expected[i].unicode() << " "; } - cerr << endl; + SVCERR << endl; } QCOMPARE(title, expected); break; @@ -185,7 +185,7 @@ // the expected UTF-16. We check this properly in // readWriteAudio below, by saving out the file to a // name matching the metadata - cerr << "Couldn't find filename \"" + SVCERR << "Couldn't find filename \"" << file << "\" in title mapping array" << endl; QSKIP("Couldn't find filename in title mapping array"); }