- string const test_session_path = "libs/ardour/test/test_session";
- system (string_compose ("rm -rf %1", test_session_path).c_str());
-
- SessionEvent::create_per_thread_pool ("test", 512);
-
- test_receiver.listen_to (error);
- test_receiver.listen_to (info);
- test_receiver.listen_to (fatal);
- test_receiver.listen_to (warning);
-
- /* We can't use VSTs here as we have a stub instead of the
- required bits in gtk2_ardour.
- */
- Config->set_use_lxvst (false);
-
- AudioEngine* engine = new AudioEngine ("test", "");
- init_post_engine ();
-
- CPPUNIT_ASSERT (engine->start () == 0);
-
- _session = new Session (*engine, test_session_path, "test_session");
- engine->set_session (_session);
+ 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");