Tests: ensure that libardour is initialized
[ardour.git] / libs / ardour / test / test_util.cc
index 4d19385f3ce0cb12f968502138b63dc953dfa28b..99a9edd9c077b950815c42f3d81191473fac8683 100644 (file)
@@ -134,6 +134,7 @@ protected:
 };
 
 TestReceiver test_receiver;
+static const char* localedir = LOCALEDIR;
 
 /** @param dir Session directory.
  *  @param state Session state file, without .ardour suffix.
@@ -141,6 +142,7 @@ TestReceiver test_receiver;
 Session *
 load_session (string dir, string state)
 {
+       ARDOUR::init (false, true, localedir);
        SessionEvent::create_per_thread_pool ("test", 512);
 
        test_receiver.listen_to (error);