From 405da5f84b072ea97b69359454899f45d92d24b6 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Wed, 22 May 2024 00:00:29 +0200 Subject: WIP LSP client This contains the start of an LSP client. Nothing (except starting the LSP server) works at the moment and the feature is disabled by default. --- test/main.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'test/main.c') diff --git a/test/main.c b/test/main.c index dc0c2dc..29e031f 100644 --- a/test/main.c +++ b/test/main.c @@ -6,9 +6,12 @@ #include "test.h" -void handle_abort() { exit(1); } +void handle_abort(int sig) { + (void)sig; + exit(1); +} -int main() { +int main(void) { // Use a hardcoded locale to get a // predictable env. setlocale(LC_ALL, "en_US.UTF-8"); @@ -47,6 +50,11 @@ int main() { printf("\n 🎁 \x1b[1;36mRunning container tests...\x1b[0m\n"); run_container_tests(); +#if defined(LSP_ENABLED) + printf("\n 📃 \x1b[1;36mRunning JSON tests...\x1b[0m\n"); + run_json_tests(); +#endif + struct timespec elapsed; clock_gettime(CLOCK_MONOTONIC, &elapsed); uint64_t elapsed_nanos = -- cgit v1.2.3