summaryrefslogtreecommitdiff
path: root/libs/ardour/test/resampled_source_test.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-07-11 11:01:36 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-07-11 11:01:36 -0400
commit4994073e93093f38cbd81a4b57cb0f19ceb2987d (patch)
tree5e4bdca4daadaedf9db4ac00493a9d79f910fb04 /libs/ardour/test/resampled_source_test.cc
parent060b381eb34823d193420ab987e455aab3a4900a (diff)
Use test_search_path function in ardour test
Diffstat (limited to 'libs/ardour/test/resampled_source_test.cc')
-rw-r--r--libs/ardour/test/resampled_source_test.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/libs/ardour/test/resampled_source_test.cc b/libs/ardour/test/resampled_source_test.cc
index 983c0d88d2..5aaf71b7aa 100644
--- a/libs/ardour/test/resampled_source_test.cc
+++ b/libs/ardour/test/resampled_source_test.cc
@@ -1,15 +1,27 @@
+// this is included first to avoid SearchPath definition on windows
+#include "test_common.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<SndFileImportableSource> s (new SndFileImportableSource ("../libs/ardour/test/data/test.wav"));
+ std::string test_file_path;
+ const string test_filename = "test.wav";
+
+ CPPUNIT_ASSERT (find_file_in_search_path (test_search_path (), test_filename, test_file_path));
+
+ boost::shared_ptr<SndFileImportableSource> s (new SndFileImportableSource (test_file_path));
ResampledImportableSource r (s, 48000, SrcBest);
/* Make sure that seek (0) has the desired effect, ie that