tests: fix -Wunused-result
diff --git a/tests/test_io.c b/tests/test_io.c
index a3d4bdf..f5448d3 100644
--- a/tests/test_io.c
+++ b/tests/test_io.c
@@ -58,7 +58,7 @@
lys_parse_fd(w->session->ctx, fd, LYS_IN_YIN, NULL);
close(fd);
- pipe(pipes);
+ assert_return_code(pipe(pipes), errno);
w->session->status = NC_STATUS_RUNNING;
w->session->version = NC_VERSION_10;
@@ -110,7 +110,7 @@
assert_int_equal(type, NC_MSG_RPC);
- write(w->session->ti.fd.out, "\n", 1);
+ assert_int_equal(write(w->session->ti.fd.out, "\n", 1), 1);
}
static void