diff --git a/libs/ardour/test/automation_list_property_test.cc b/libs/ardour/test/automation_list_property_test.cc index 9813ee6648..35843dafbc 100644 --- a/libs/ardour/test/automation_list_property_test.cc +++ b/libs/ardour/test/automation_list_property_test.cc @@ -46,11 +46,17 @@ write_automation_list_xml (XMLNode* node, std::string filename) void AutomationListPropertyTest::setUp () { + // The reference files were created with this superclock ticks per second + // value. Setting this here makes sure we don't need to update all the + // reference files whenever the default value changes. + _saved_superclock_ticks_per_second = Temporal::superclock_ticks_per_second(); + Temporal::set_superclock_ticks_per_second(56448000); } void AutomationListPropertyTest::tearDown () { + Temporal::set_superclock_ticks_per_second(_saved_superclock_ticks_per_second); } void diff --git a/libs/ardour/test/automation_list_property_test.h b/libs/ardour/test/automation_list_property_test.h index 39a8466e57..172475b89a 100644 --- a/libs/ardour/test/automation_list_property_test.h +++ b/libs/ardour/test/automation_list_property_test.h @@ -19,6 +19,8 @@ #include #include +#include "temporal/superclock.h" + class AutomationListPropertyTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE (AutomationListPropertyTest); @@ -31,4 +33,7 @@ public: void tearDown (); void basicTest (); void undoTest (); + +private: + Temporal::superclock_t _saved_superclock_ticks_per_second; };