Don't add standard processors twice to routes from 2.X sessions. Fixes #3434.
[ardour.git] / libs / pbd / test / scalar_properties.cc
index b637076cc6eba3cb6c84bc96db5008369f0bda15..8a28db40c2bb577c6a1ca685d442df803c527722 100644 (file)
@@ -29,25 +29,19 @@ ScalarPropertiesTest::testBasic ()
        CPPUNIT_ASSERT (_fred == 4);
        CPPUNIT_ASSERT (_fred.changed() == true);
 
-       _fred.clear_history ();
+       _fred.clear_changes ();
        CPPUNIT_ASSERT (_fred.changed() == false);
        
        _fred = 5;
        CPPUNIT_ASSERT (_fred == 5);
        CPPUNIT_ASSERT (_fred.changed() == true);
 
-       PropertyList undo;
-       PropertyList redo;
-       _fred.diff (undo, redo, 0);
+       PropertyList changes;
+       _fred.get_changes_as_properties (changes, 0);
 
-       CPPUNIT_ASSERT (undo.size() == 1);
-       CPPUNIT_ASSERT (redo.size() == 1);
+       CPPUNIT_ASSERT (changes.size() == 1);
 
-       PropertyTemplate<int>* t = dynamic_cast<Property<int>*> (undo.begin()->second);
+       PropertyTemplate<int>* t = dynamic_cast<Property<int>*> (changes.begin()->second);
        CPPUNIT_ASSERT (t);
        CPPUNIT_ASSERT (t->val() == 4);
-
-       t = dynamic_cast<Property<int>*> (redo.begin()->second);
-       CPPUNIT_ASSERT (t);
-       CPPUNIT_ASSERT (t->val() == 5);
 }