mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +01:00
Tests: ensure that libardour is initialized
This commit is contained in:
parent
32269f0c5a
commit
339670b6fa
2 changed files with 4 additions and 0 deletions
|
|
@ -22,10 +22,12 @@ using namespace ARDOUR;
|
||||||
using namespace PBD;
|
using namespace PBD;
|
||||||
|
|
||||||
static TextReceiver text_receiver ("test");
|
static TextReceiver text_receiver ("test");
|
||||||
|
static const char* localedir = LOCALEDIR;
|
||||||
|
|
||||||
void
|
void
|
||||||
SessionTest::setUp ()
|
SessionTest::setUp ()
|
||||||
{
|
{
|
||||||
|
ARDOUR::init (false, true, localedir);
|
||||||
SessionEvent::create_per_thread_pool ("session_test", 512);
|
SessionEvent::create_per_thread_pool ("session_test", 512);
|
||||||
|
|
||||||
text_receiver.listen_to (error);
|
text_receiver.listen_to (error);
|
||||||
|
|
|
||||||
|
|
@ -134,6 +134,7 @@ protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
TestReceiver test_receiver;
|
TestReceiver test_receiver;
|
||||||
|
static const char* localedir = LOCALEDIR;
|
||||||
|
|
||||||
/** @param dir Session directory.
|
/** @param dir Session directory.
|
||||||
* @param state Session state file, without .ardour suffix.
|
* @param state Session state file, without .ardour suffix.
|
||||||
|
|
@ -141,6 +142,7 @@ TestReceiver test_receiver;
|
||||||
Session *
|
Session *
|
||||||
load_session (string dir, string state)
|
load_session (string dir, string state)
|
||||||
{
|
{
|
||||||
|
ARDOUR::init (false, true, localedir);
|
||||||
SessionEvent::create_per_thread_pool ("test", 512);
|
SessionEvent::create_per_thread_pool ("test", 512);
|
||||||
|
|
||||||
test_receiver.listen_to (error);
|
test_receiver.listen_to (error);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue