Tests: ensure that libardour is initialized
authorRobin Gareus <robin@gareus.org>
Wed, 3 Dec 2014 19:45:01 +0000 (20:45 +0100)
committerRobin Gareus <robin@gareus.org>
Wed, 3 Dec 2014 19:45:01 +0000 (20:45 +0100)
libs/ardour/test/session_test.cc
libs/ardour/test/test_util.cc

index 46d7de4f9c420b7a05da443ba4abe85ba6637f1d..fced09b7ac76a76cf429c1c3a9b4ea4bb155de58 100644 (file)
@@ -22,10 +22,12 @@ using namespace ARDOUR;
 using namespace PBD;
 
 static TextReceiver text_receiver ("test");
+static const char* localedir = LOCALEDIR;
 
 void
 SessionTest::setUp ()
 {
+       ARDOUR::init (false, true, localedir);
        SessionEvent::create_per_thread_pool ("session_test", 512);
 
        text_receiver.listen_to (error);
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);