aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile4
-rw-r--r--tests/test.c3
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);