Skip to content

Commit

Permalink
test: Add a simple new/delete test for Tox.
Browse files Browse the repository at this point in the history
This can be used for some static analysis that doesn't currently survive
a full iterate loop, but can possibly survive a new+kill.
  • Loading branch information
iphydf committed Jan 24, 2024
1 parent 1cdcf93 commit a05dcca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions auto_tests/tox_new_test.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include "../toxcore/tox.h"

#include "../toxcore/ccompat.h"

int main(void) {
tox_kill(tox_new(nullptr, nullptr));
return 0;
}

0 comments on commit a05dcca

Please sign in to comment.