aboutsummaryrefslogtreecommitdiff
path: root/test/pbdrv/mem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/pbdrv/mem.cpp')
-rw-r--r--test/pbdrv/mem.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/pbdrv/mem.cpp b/test/pbdrv/mem.cpp
new file mode 100644
index 0000000..6836852
--- /dev/null
+++ b/test/pbdrv/mem.cpp
@@ -0,0 +1,11 @@
+#include <gtest/gtest.h>
+
+#include "pb-mem.h"
+
+TEST(pb_mem, all) {
+ void * chunk = pb_malloc(64);
+ ASSERT_NE(chunk, nullptr);
+
+ pb_free(chunk);
+}
+