summaryrefslogtreecommitdiff
path: root/libs/pbd/test
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-04-02 14:52:55 +0000
committerCarl Hetherington <carl@carlh.net>2010-04-02 14:52:55 +0000
commit9e3280ae67eb2898bdcb8273ada9112f73118fa7 (patch)
treee4ad2c109d0ee47bd246d32a935975fd484c914f /libs/pbd/test
parent24fee4b8ef5896aea04c9d043caabe3e30a6fd7d (diff)
Build libpbd tests using waf.
git-svn-id: svn://localhost/ardour2/branches/3.0@6831 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/test')
-rw-r--r--libs/pbd/test/xpath.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/pbd/test/xpath.cc b/libs/pbd/test/xpath.cc
index 54b844f16c..237bf8fa64 100644
--- a/libs/pbd/test/xpath.cc
+++ b/libs/pbd/test/xpath.cc
@@ -5,10 +5,12 @@
using namespace std;
+string const prefix = "../../libs/pbd/test/";
+
int main()
{
cout << "Test 1: RosegardenPatchFile.xml: Find all banks in the file" << endl;
- XMLTree doc("./RosegardenPatchFile.xml");
+ XMLTree doc(prefix + "RosegardenPatchFile.xml");
// "//bank" gives as last element an empty element libxml bug????
boost::shared_ptr<XMLSharedNodeList> result = doc.root()->find("//bank[@name]");
@@ -38,7 +40,7 @@ int main()
cout << endl << endl << "Test 3: TestSession.ardour: find all Sources where captured-for contains the string 'Guitar'" << endl;
// We have to allocate a new document here, or we get segfaults
- XMLTree doc2("./TestSession.ardour");
+ XMLTree doc2(prefix + "TestSession.ardour");
result = doc2.root()->find("/Session/Sources/Source[contains(@captured-for, 'Guitar')]");
assert(result->size() == 16);
@@ -62,7 +64,7 @@ int main()
cout << endl << endl << "Test 5: ProtoolsPatchFile.midnam: Get Banks and Patches for 'Name Set 1'" << endl;
// We have to allocate a new document here, or we get segfaults
- XMLTree doc3("./ProtoolsPatchFile.midnam");
+ XMLTree doc3(prefix + "ProtoolsPatchFile.midnam");
result = doc3.root()->find("/MIDINameDocument/MasterDeviceNames/ChannelNameSet[@Name='Name Set 1']/PatchBank");
assert(result->size() == 16);