mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
657d185de5
The FLAT_OUTPUT_STRUCTURE CMake option was added to allow the tests to find the .dlls. The global data symbols were converted to functions to allow WINDOWS_EXPORT_ALL_SYMBOLS handle them. See: https://cmake.org/cmake/help/v3.23/prop_tgt/WINDOWS_EXPORT_ALL_SYMBOLS.html
27 lines
645 B
C
27 lines
645 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>
|
|
|
|
#include "auto_test_support.h"
|
|
|
|
static void friend_connection_test(AutoTox *toxes)
|
|
{
|
|
// Nothing to do here. When copying this test, add test-specific code here.
|
|
}
|
|
|
|
int main(void)
|
|
{
|
|
setvbuf(stdout, nullptr, _IONBF, 0);
|
|
|
|
Run_Auto_Options options = default_run_auto_options();
|
|
options.graph = GRAPH_LINEAR;
|
|
run_auto_test(nullptr, 2, friend_connection_test, 0, &options);
|
|
|
|
return 0;
|
|
}
|