Better error if a test file is missing.
authorCarl Hetherington <cth@carlh.net>
Fri, 28 Aug 2015 12:33:29 +0000 (13:33 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 28 Aug 2015 12:33:29 +0000 (13:33 +0100)
test/sound_frame_test.cc

index 700eb9b938f606511f3bbf3f30667b3ac4d3825c..fa7e210368d7fcb26aedd31234a0633cd9a60e7f 100644 (file)
@@ -40,6 +40,7 @@ BOOST_AUTO_TEST_CASE (sound_frame_test)
        SF_INFO info;
        info.format = 0;
        SNDFILE* sndfile = sf_open (ref_file.string().c_str(), SFM_READ, &info);
+       BOOST_REQUIRE (sndfile);
 
        int ref_data[frame_length * channels];
        int const read = sf_readf_int (sndfile, ref_data, frame_length);