Skip to content

Commit fe0b31e

Browse files
committed
Set root for tests.
1 parent 58d28af commit fe0b31e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/common/tests/CommonTest.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#include "firebird.h"
22
#include "firebird/Interface.h"
3+
#include "../common/classes/init.h"
4+
#include "../common/classes/TempFile.h"
5+
#include "../common/config/config.h"
36
#include "../common/gdsassert.h"
47

58
#define BOOST_TEST_MODULE CommonTest
@@ -14,6 +17,19 @@ int ISC_EXPORT fb_shutdown(unsigned int, const int)
1417

1518
namespace Firebird
1619
{
20+
namespace
21+
{
22+
struct Init
23+
{
24+
Init(auto&&)
25+
{
26+
Config::setRootDirectoryFromCommandLine(TempFile::getTempPath());
27+
}
28+
};
29+
30+
GlobalPtr<Init> init;
31+
}
32+
1733
IMaster* API_ROUTINE fb_get_master_interface()
1834
{
1935
fb_assert(false);

0 commit comments

Comments
 (0)