Skip to content

Commit a05dcca

Browse files
committed
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.
1 parent 1cdcf93 commit a05dcca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

auto_tests/tox_new_test.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include "../toxcore/tox.h"
2+
3+
#include "../toxcore/ccompat.h"
4+
5+
int main(void) {
6+
tox_kill(tox_new(nullptr, nullptr));
7+
return 0;
8+
}

0 commit comments

Comments
 (0)