diff options
Diffstat (limited to 'tests/test-rpc_server.c')
-rw-r--r-- | tests/test-rpc_server.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test-rpc_server.c b/tests/test-rpc_server.c new file mode 100644 index 0000000..6359cb5 --- /dev/null +++ b/tests/test-rpc_server.c @@ -0,0 +1,18 @@ +#include <stdio.h> +#include <stdint.h> +#include <string.h> +#include <assert.h> + +#include <hal.h> + +#warning This is wrong, nothing outside libhal itself should include hal_internal.h +#include <hal_internal.h> + +int main (int argc, char *argv[]) +{ + if (rpc_server_init() != HAL_OK) + return 1; + + rpc_server_main(); + return 0; +} |