2018-06-25 20:37:46 +08:00
|
|
|
/* 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.
|
|
|
|
*/
|
|
|
|
|
2018-07-04 22:42:02 +08:00
|
|
|
#include <stdint.h>
|
2018-06-25 20:37:46 +08:00
|
|
|
|
2022-01-26 03:25:36 +08:00
|
|
|
#include "auto_test_support.h"
|
2018-06-25 20:37:46 +08:00
|
|
|
|
2022-01-26 03:25:36 +08:00
|
|
|
static void friend_connection_test(AutoTox *toxes)
|
2018-06-25 20:37:46 +08:00
|
|
|
{
|
|
|
|
// Nothing to do here. When copying this test, add test-specific code here.
|
|
|
|
}
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
setvbuf(stdout, nullptr, _IONBF, 0);
|
|
|
|
|
2022-03-29 06:13:33 +08:00
|
|
|
Run_Auto_Options options = default_run_auto_options();
|
2022-01-26 03:25:36 +08:00
|
|
|
options.graph = GRAPH_LINEAR;
|
|
|
|
run_auto_test(nullptr, 2, friend_connection_test, 0, &options);
|
|
|
|
|
2018-06-25 20:37:46 +08:00
|
|
|
return 0;
|
|
|
|
}
|