Rename selftest

This commit is contained in:
Joseph Henry
2021-02-16 00:24:38 -08:00
parent 20fba7312b
commit 2648a67331

12
test/selftest.cpp Normal file
View File

@@ -0,0 +1,12 @@
/**
* Demonstrate that we can compile, link, and run an application
* with libzt and successfully get an error from the socket API.
*/
#include <cstdlib>
#include <ZeroTierSockets.h>
int main()
{
return zts_socket(0,0,0) != -2; // We expect -2 from an uninitialized libzt instance
}