changeset 1702:5d4831c2e8aa

Ensure test fails rather than crashing if this reader doesn't get created
author Chris Cannam
date Tue, 07 May 2019 15:54:15 +0100
parents dbd13eb7dad1
children 1e7b7a62d373 8ce940f9e32b
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:33:53 2019 +0100
+++ b/data/fileio/test/AudioFileReaderTest.h	Tue May 07 15:54:15 2019 +0100
@@ -315,6 +315,8 @@
             }
         }
 
+        QVERIFY(reader != nullptr);
+
         QString extension;
         sv_samplerate_t fileRate;
         int channels;