summaryrefslogtreecommitdiff
path: root/tests/pke-test-dummy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pke-test-dummy.cpp')
-rw-r--r--tests/pke-test-dummy.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/pke-test-dummy.cpp b/tests/pke-test-dummy.cpp
index e8c34ba..914f3cf 100644
--- a/tests/pke-test-dummy.cpp
+++ b/tests/pke-test-dummy.cpp
@@ -11,8 +11,12 @@
#include "static-ui.hpp"
#include "thread-pool.hpp"
+static pk_membucket *bkt;
+
int pke_test_dummy_001() {
- pk_ev_init(nullptr);
+ bkt = pk_mem_bucket_create("pke_test_dummy", PK_MEM_DEFAULT_BUCKET_SIZE, PK_MEMBUCKET_FLAG_NONE);
+ pk_mem_bucket_set_client_mem_bucket(bkt);
+ pk_ev_init(bkt);
Physics_Init();
PkeThreads_Init();
AM_Init();
@@ -40,6 +44,9 @@ int pke_test_dummy_001() {
PkeThreads_Teardown();
Physics_Teardown();
pk_ev_teardown();
+ pk_mem_bucket_destroy(bkt);
+ pk_mem_bucket_set_client_mem_bucket(nullptr);
+ bkt = nullptr;
return 0;
}