From a05dccad13ec3c79c3dbd42324d1cd926b3209f5 Mon Sep 17 00:00:00 2001 From: iphydf Date: Tue, 23 Jan 2024 20:08:22 +0000 Subject: [PATCH] test: Add a simple new/delete test for Tox. This can be used for some static analysis that doesn't currently survive a full iterate loop, but can possibly survive a new+kill. --- auto_tests/tox_new_test.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 auto_tests/tox_new_test.c diff --git a/auto_tests/tox_new_test.c b/auto_tests/tox_new_test.c new file mode 100644 index 00000000..99d1935b --- /dev/null +++ b/auto_tests/tox_new_test.c @@ -0,0 +1,8 @@ +#include "../toxcore/tox.h" + +#include "../toxcore/ccompat.h" + +int main(void) { + tox_kill(tox_new(nullptr, nullptr)); + return 0; +}