13
0

Fix a couple of build errors in the test suite.

The parameters to Session::new_audio_track() changed in e0ff70cf, and
Playlist::region_list() was renamed to region_list_property() in
fce6ac0e. Update calls to these functions in the test suite to match.

A couple of tests still fail after these changes.
This commit is contained in:
Colin Fletcher 2016-06-08 16:03:14 +01:00
parent 9a1c24dda7
commit e27df63bc5
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ using namespace ARDOUR;
void
ControlSurfacesTest::instantiateAndTeardownTest ()
{
_session->new_audio_track (1, 2, Normal, 0, 1, "Test");
_session->new_audio_track (1, 2, NULL, 1, "Test", PresentationInfo::max_order, Normal);
ControlProtocolManager& m = ControlProtocolManager::instance ();
for (list<ControlProtocolInfo*>::iterator i = m.control_protocol_info.begin(); i != m.control_protocol_info.end(); ++i) {

View File

@ -29,7 +29,7 @@ main (int argc, char* argv[])
assert (playlist);
/* And the region */
boost::shared_ptr<MidiRegion> region = boost::dynamic_pointer_cast<MidiRegion> (playlist->region_list().rlist().front());
boost::shared_ptr<MidiRegion> region = boost::dynamic_pointer_cast<MidiRegion> (playlist->region_list_property().rlist().front());
assert (region);
/* Duplicate it a lot */