Fix paths to .midnam file

This commit is contained in:
Robin Gareus 2019-09-05 17:42:19 +02:00
parent dfdce83452
commit 973ff10273
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -22,7 +22,7 @@ test_search_path ()
std::vector<std::string> path_tok; std::vector<std::string> path_tok;
path_tok.push_back (g_win32_get_package_installation_directory_of_module(NULL)); path_tok.push_back (g_win32_get_package_installation_directory_of_module(NULL));
path_tok.push_back ("share"); path_tok.push_back ("share");
path_tok.push_back ("ardour3"); path_tok.push_back ("ardour6"); // XXX lwrcase_dirname
path_tok.push_back ("patchfiles"); path_tok.push_back ("patchfiles");
return Glib::build_filename (path_tok); return Glib::build_filename (path_tok);
} }
@ -35,7 +35,7 @@ MidnamTest::protools_patchfile_test()
{ {
std::string test_file_path; std::string test_file_path;
CPPUNIT_ASSERT(find_file (test_search_path (), "Roland_SC-88_Pro.midnam", test_file_path)); CPPUNIT_ASSERT(find_file (test_search_path (), "Roland_SC_88_Pro.midnam", test_file_path));
XMLTree xmldoc(test_file_path); XMLTree xmldoc(test_file_path);
boost::shared_ptr<XMLSharedNodeList> result = xmldoc.find( boost::shared_ptr<XMLSharedNodeList> result = xmldoc.find(
"//MIDINameDocument"); "//MIDINameDocument");
@ -103,7 +103,7 @@ MidnamTest::yamaha_PSRS900_patchfile_test()
{ {
std::string test_file_path; std::string test_file_path;
CPPUNIT_ASSERT(find_file (test_search_path (), "Yamaha_PSR-S900.midnam", test_file_path)); CPPUNIT_ASSERT(find_file (test_search_path (), "Yamaha_PSR_S900.midnam", test_file_path));
XMLTree xmldoc(test_file_path); XMLTree xmldoc(test_file_path);
boost::shared_ptr<XMLSharedNodeList> result = xmldoc.find( boost::shared_ptr<XMLSharedNodeList> result = xmldoc.find(
"//MIDINameDocument"); "//MIDINameDocument");