copy plugin state to all instances when instantiating.
[ardour.git] / libs / ardour / test / test_needing_session.cc
index 4525a758b30a5b995048f72f44ef0c40daf614d6..d1ce25417b9ca923245dbfb1af2128add7241ea3 100644 (file)
@@ -6,7 +6,6 @@
 #include "ardour/audioengine.h"
 #include "test_needing_session.h"
 #include "test_util.h"
-#include "test_common.h"
 
 using namespace std;
 using namespace ARDOUR;
@@ -17,15 +16,14 @@ TestNeedingSession::setUp ()
 {
        const string session_name("test_session");
        std::string new_session_dir = Glib::build_filename (new_test_output_dir(), session_name);
+       create_and_start_dummy_backend ();
        _session = load_session (new_session_dir, "test_session");
 }
 
 void
 TestNeedingSession::tearDown ()
 {
-       AudioEngine::instance()->remove_session ();
        delete _session;
-       AudioEngine::instance()->stop ();
-       
-       AudioEngine::destroy ();
+       stop_and_destroy_backend ();
+       _session = 0;
 }