changeset 1700:c1208b211d8c single-point

Ensure test fails rather than crashing if this reader doesn't get created
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 03 May 2019 15:02:09 +0100
parents ad33d6c10738
children 81f50b70bdef
files data/fileio/test/AudioFileReaderTest.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/test/AudioFileReaderTest.h	Fri May 03 13:44:45 2019 +0100
+++ b/data/fileio/test/AudioFileReaderTest.h	Fri May 03 15:02:09 2019 +0100
@@ -315,6 +315,8 @@
             }
         }
 
+        QVERIFY(reader != nullptr);
+
         QString extension;
         sv_samplerate_t fileRate;
         int channels;