aboutsummaryrefslogtreecommitdiff
path: root/zenstore-test/zenstore-test.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-04-12 17:10:48 +0200
committerDan Engelbrecht <[email protected]>2022-04-12 17:10:48 +0200
commitdb8c83bb73c6489d8023bd05d4f9da171510ef8d (patch)
tree5ce83b677448b7647c6d862e34af1fe5bc0769a3 /zenstore-test/zenstore-test.cpp
parentset open file limit at startup (diff)
downloadzen-db8c83bb73c6489d8023bd05d4f9da171510ef8d.tar.xz
zen-db8c83bb73c6489d8023bd05d4f9da171510ef8d.zip
set open file limits after initialize of logging
Diffstat (limited to 'zenstore-test/zenstore-test.cpp')
-rw-r--r--zenstore-test/zenstore-test.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/zenstore-test/zenstore-test.cpp b/zenstore-test/zenstore-test.cpp
index a76df6639..33844fa41 100644
--- a/zenstore-test/zenstore-test.cpp
+++ b/zenstore-test/zenstore-test.cpp
@@ -19,6 +19,11 @@
int
main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
{
+#if ZEN_WITH_TESTS
+ zen::zenstore_forcelinktests();
+
+ zen::logging::InitializeLogging();
+
#if ZEN_PLATFORM_LINUX || ZEN_PLATFORM_MAC
struct rlimit Limit;
int Error = getrlimit(RLIMIT_NOFILE, &Limit);
@@ -38,10 +43,6 @@ main([[maybe_unused]] int argc, [[maybe_unused]] char* argv[])
}
}
#endif
-#if ZEN_WITH_TESTS
- zen::zenstore_forcelinktests();
-
- zen::logging::InitializeLogging();
return doctest::Context(argc, argv).run();
#else