toxcore/auto_tests/friend_connection_test.c
iphydf 6b75f8b889
chore: Remove config.h.
This aligns the autotools build with the cmake build, which doesn't have
a config.h file. It also removes the ambiguity of config.h and
other/bootstrap_daemon/src/config.h.
2021-12-15 10:26:50 +00:00

29 lines
616 B
C

/* Tests that we can make a friend connection.
*
* This is the simplest test that brings up two toxes that can talk to each
* other. It's useful as a copy/pasteable starting point for testing other
* features.
*/
#include <stdint.h>
typedef struct State {
uint32_t index;
uint64_t clock;
} State;
#include "run_auto_test.h"
static void friend_connection_test(Tox **toxes, State *state)
{
// Nothing to do here. When copying this test, add test-specific code here.
}
int main(void)
{
setvbuf(stdout, nullptr, _IONBF, 0);
run_auto_test(2, friend_connection_test, false);
return 0;
}