summaryrefslogtreecommitdiffstats
path: root/test/unit/a0.c
diff options
context:
space:
mode:
authorJason Evans <jasone@canonware.com>2016-05-07 19:42:31 (GMT)
committerJason Evans <jasone@canonware.com>2016-05-07 23:55:36 (GMT)
commit0c12dcabc59ea9c95fc38197e7c4bc44663b0a26 (patch)
tree11301caf6588f5a08b88214992f872fbfc9951d9 /test/unit/a0.c
parent919e4a0ea92fbbf9b97efdf9f31a3c800f77cd8f (diff)
downloadjemalloc-0c12dcabc59ea9c95fc38197e7c4bc44663b0a26.zip
jemalloc-0c12dcabc59ea9c95fc38197e7c4bc44663b0a26.tar.gz
jemalloc-0c12dcabc59ea9c95fc38197e7c4bc44663b0a26.tar.bz2
Fix tsd bootstrapping for a0malloc().
Diffstat (limited to 'test/unit/a0.c')
-rw-r--r--test/unit/a0.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/unit/a0.c b/test/unit/a0.c
new file mode 100644
index 0000000..b9ba45a
--- /dev/null
+++ b/test/unit/a0.c
@@ -0,0 +1,19 @@
+#include "test/jemalloc_test.h"
+
+TEST_BEGIN(test_a0)
+{
+ void *p;
+
+ p = a0malloc(1);
+ assert_ptr_not_null(p, "Unexpected a0malloc() error");
+ a0dalloc(p);
+}
+TEST_END
+
+int
+main(void)
+{
+
+ return (test_no_malloc_init(
+ test_a0));
+}