mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
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.
This commit is contained in:
parent
1cdcf938b9
commit
a05dccad13
8
auto_tests/tox_new_test.c
Normal file
8
auto_tests/tox_new_test.c
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#include "../toxcore/tox.h"
|
||||||
|
|
||||||
|
#include "../toxcore/ccompat.h"
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
tox_kill(tox_new(nullptr, nullptr));
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user