From: Zbigniew Jędrzejewski-Szmek Date: Mon, 27 Nov 2017 21:51:11 +0000 (+0000) Subject: test-fd-util: add assert_se to make coverity happy X-Git-Tag: v236~102^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca9b2b4dc1bced24a9359fef6da797f785628433;p=thirdparty%2Fsystemd.git test-fd-util: add assert_se to make coverity happy --- diff --git a/src/test/test-fd-util.c b/src/test/test-fd-util.c index f45fbbe7e39..e5a0e9d51bf 100644 --- a/src/test/test-fd-util.c +++ b/src/test/test-fd-util.c @@ -104,7 +104,7 @@ static void test_open_serialization_fd(void) { fd = open_serialization_fd("test"); assert_se(fd >= 0); - write(fd, "test\n", 5); + assert_se(write(fd, "test\n", 5) == 5); } static void test_acquire_data_fd_one(unsigned flags) {