diff options
| author | latex <latex@disroot.org> | 2023-02-05 04:39:05 +0100 |
|---|---|---|
| committer | latex <latex@disroot.org> | 2023-02-05 04:39:05 +0100 |
| commit | 9df686fe72799f5ffc10b49027c37ebd1811eda8 (patch) | |
| tree | 77994bdb951e77c10ed6f7b221d79d6b01832aaf /tests | |
| parent | 20c71f96968a235189cee8b388ac58e9b45f099e (diff) | |
| download | libumumble-9df686fe72799f5ffc10b49027c37ebd1811eda8.tar.gz | |
add TLS support
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Makefile | 4 | ||||
| -rw-r--r-- | tests/test.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/Makefile b/tests/Makefile index cbd765c..95a146b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -4,8 +4,8 @@ INCLUDES = -I../include SRC = $(shell find -type f -name '*.c') BIN = $(SRC:%.c=%) -LDLIBS = -l:libumumble.a -luv -LDFLAGS = -L.. +LDLIBS := -l:libumumble.a $(LDLIBS) +LDFLAGS += -L.. .PHONY: all diff --git a/tests/test.c b/tests/test.c index fc55e90..1c673a0 100644 --- a/tests/test.c +++ b/tests/test.c @@ -8,6 +8,9 @@ int main(int argc, char *argv[]) printf("%d\n", ctx.status); mumble_connect(&ctx, "127.0.0.1", 0); + mumble_run(&ctx); + if (ctx.error != 0) + printf("%d %s", ctx.error, uv_strerror(ctx.error)); mumble_ctx_close(&ctx); printf("%ld\n", ctx.uv_loop.time); |