Fix compilation with --test.

Make midnam test suite pass again.

The Ardour test suite does not pass.  I commented out old crossfade stuff, but
I am not familiar enough with the parts that fail to fix it.  It might be a
good idea for someone to look into this.  Ideally we'd have the test integrated
into everyone's workflow, but they add quite a few files to compile...


git-svn-id: svn://localhost/ardour2/branches/3.0@13931 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2013-01-20 18:23:42 +00:00
parent fc7b4b7f62
commit fa8d0268eb
6 changed files with 22 additions and 16 deletions

View file

@ -77,12 +77,12 @@ SequenceTest::iteratorSeekTest ()
bool on = true;
for (Sequence<Time>::const_iterator i = seq->begin(600); i != seq->end(); ++i) {
if (on) {
CPPUNIT_ASSERT(((MIDIEvent<Time>&)*i).is_note_on());
CPPUNIT_ASSERT(((const MIDIEvent<Time>&)*i).is_note_on());
CPPUNIT_ASSERT_EQUAL(i->time(), Time((num_notes + 6) * 100));
++num_notes;
on = false;
} else {
CPPUNIT_ASSERT(((MIDIEvent<Time>&)*i).is_note_off());
CPPUNIT_ASSERT(((const MIDIEvent<Time>&)*i).is_note_off());
on = true;
}
}