diff options
| author | Joseph Henry <[email protected]> | 2021-01-26 18:04:03 -0800 |
|---|---|---|
| committer | Joseph Henry <[email protected]> | 2021-01-26 18:04:03 -0800 |
| commit | b0e433798381b4b740cf1fd195df4ff6f6d03b8d (patch) | |
| tree | dc117a4b74be66b5b4f088d714fdf1482b7124a9 /test | |
| parent | 04066dbc22fa622f48a63bdc0eecdfd3a6bfcfc0 (diff) | |
Add simple test for CI build workflow
Diffstat (limited to 'test')
| -rw-r--r-- | test/error.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/error.cpp b/test/error.cpp new file mode 100644 index 0000000..5f96a5a --- /dev/null +++ b/test/error.cpp @@ -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 +}
\ No newline at end of file |
