summaryrefslogtreecommitdiff
path: root/test/main.c
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2024-05-22 00:00:29 +0200
committerAlbert Cervin <albert@acervin.com>2024-09-12 20:17:56 +0200
commit405da5f84b072ea97b69359454899f45d92d24b6 (patch)
tree20525b4bc44a5d8cbab4d62abe8413e174731db6 /test/main.c
parent4ab7e453e26afc6e9f4938c65f89463fbba9e267 (diff)
downloaddged-405da5f84b072ea97b69359454899f45d92d24b6.tar.gz
dged-405da5f84b072ea97b69359454899f45d92d24b6.tar.xz
dged-405da5f84b072ea97b69359454899f45d92d24b6.zip
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.
Diffstat (limited to 'test/main.c')
-rw-r--r--test/main.c12
1 files changed, 10 insertions, 2 deletions
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 =