Mercurial > hg > svcore
diff data/fileio/test/AudioFileReaderTest.h @ 1699:ad33d6c10738 single-point
Merge from default branch
author | Chris Cannam |
---|---|
date | Fri, 03 May 2019 13:44:45 +0100 |
parents | dbd13eb7dad1 |
children | c1208b211d8c |
line wrap: on
line diff
--- a/data/fileio/test/AudioFileReaderTest.h Wed May 01 21:39:37 2019 +0100 +++ b/data/fileio/test/AudioFileReaderTest.h Fri May 03 13:44:45 2019 +0100 @@ -21,6 +21,7 @@ #include "../WavFileWriter.h" #include "AudioTestData.h" +#include "UnsupportedFormat.h" #include <cmath> @@ -73,7 +74,7 @@ bitdepth = bits[2].toInt(); } } - + void getExpectedThresholds(QString format, QString filename, bool resampled, @@ -305,11 +306,13 @@ (audioDir + "/" + format + "/" + audiofile, params); if (!reader) { + if (isLegitimatelyUnsupported(format)) { #if ( QT_VERSION >= 0x050000 ) - QSKIP("Unsupported file, skipping"); + QSKIP("Unsupported file, skipping"); #else - QSKIP("Unsupported file, skipping", SkipSingle); + QSKIP("Unsupported file, skipping", SkipSingle); #endif + } } QString extension;