aboutsummaryrefslogtreecommitdiffstats
path: root/libtest/libtest.h
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-08 22:29:35 +0200
committerMattias Andrée <m@maandree.se>2026-05-08 22:29:35 +0200
commit2d3a573977417d917c16742d8d9d8ead047d0ebc (patch)
treecaeac52856a9df0478e2bee53e5dda1f84422461 /libtest/libtest.h
parentAdd DEFAULT_SUPPORT option and improve DEPENDENCIES (diff)
downloadlibrecrypt-2d3a573977417d917c16742d8d9d8ead047d0ebc.tar.gz
librecrypt-2d3a573977417d917c16742d8d9d8ead047d0ebc.tar.bz2
librecrypt-2d3a573977417d917c16742d8d9d8ead047d0ebc.tar.xz
Misc
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--libtest/libtest.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/libtest/libtest.h b/libtest/libtest.h
new file mode 100644
index 0000000..3a3d963
--- /dev/null
+++ b/libtest/libtest.h
@@ -0,0 +1,23 @@
+/* See LICENSE file for copyright and license details. */
+
+void libtest_start_tracking(void);
+void libtest_stop_tracking(void);
+int libtest_check_no_leaks(void);
+void libtest_force_zero_on_alloc(int);
+void libtest_expect_zeroed_on_free(int);
+
+int libtest_have_custom_malloc(void);
+int libtest_have_custom_calloc(void);
+int libtest_have_custom_realloc(void);
+int libtest_have_custom_reallocarray(void);
+int libtest_have_custom_valloc(void);
+int libtest_have_custom_pvalloc(void);
+int libtest_have_custom_memalign(void);
+int libtest_have_custom_aligned_alloc(void);
+int libtest_have_custom_posix_memalign(void);
+int libtest_have_custom_malloc_usable_size(void);
+int libtest_have_custom_free(void);
+int libtest_have_custom_free_sized(void);
+int libtest_have_custom_free_aligned_sized(void);
+
+void libtest_dump_stack(const char *indent);