X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Ftest%2Fresampled_source_test.cc;h=97bf2e58fe63f012b149e30c38c6f46e8ebdd27d;hb=541705e1ee473f8e80afc81206d0ab9c3f4c9911;hp=983c0d88d227e83aab6c2a5f3312b9ad093ea9f4;hpb=73461494d75ab794224cbe93021acfa51a8c98a9;p=ardour.git diff --git a/libs/ardour/test/resampled_source_test.cc b/libs/ardour/test/resampled_source_test.cc index 983c0d88d2..97bf2e58fe 100644 --- a/libs/ardour/test/resampled_source_test.cc +++ b/libs/ardour/test/resampled_source_test.cc @@ -1,15 +1,26 @@ +#include "test_util.h" + +#include "pbd/file_utils.h" #include "ardour/resampled_source.h" #include "ardour/sndfileimportable.h" #include "resampled_source_test.h" + CPPUNIT_TEST_SUITE_REGISTRATION (ResampledSourceTest); +using namespace std; using namespace ARDOUR; +using namespace PBD; void ResampledSourceTest::seekTest () { - boost::shared_ptr s (new SndFileImportableSource ("../libs/ardour/test/data/test.wav")); + std::string test_file_path; + const string test_filename = "test.wav"; + + CPPUNIT_ASSERT (find_file (test_search_path (), test_filename, test_file_path)); + + boost::shared_ptr s (new SndFileImportableSource (test_file_path)); ResampledImportableSource r (s, 48000, SrcBest); /* Make sure that seek (0) has the desired effect, ie that