projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7aab54
)
test-dhcp-client: add more asserts
author
Tom Gundersen
<teg@jklm.no>
Mon, 13 Oct 2014 08:07:05 +0000
(10:07 +0200)
committer
Tom Gundersen
<teg@jklm.no>
Mon, 13 Oct 2014 08:07:29 +0000
(10:07 +0200)
src/libsystemd-network/test-dhcp-client.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-network/test-dhcp-client.c
b/src/libsystemd-network/test-dhcp-client.c
index
7dab97d
..
0515440
100644
(file)
--- a/
src/libsystemd-network/test-dhcp-client.c
+++ b/
src/libsystemd-network/test-dhcp-client.c
@@
-485,12
+485,12
@@
static void test_addr_acq(sd_event *e) {
res = sd_dhcp_client_start(client);
assert_se(res == 0 || res == -EINPROGRESS);
-
sd_event_loop(e
);
+
assert_se(sd_event_loop(e) >= 0
);
test_hangcheck = sd_event_source_unref(test_hangcheck);
-
sd_dhcp_client_set_callback(client, NULL, NULL
);
-
sd_dhcp_client_stop(client
);
+
assert_se(sd_dhcp_client_set_callback(client, NULL, NULL) >= 0
);
+
assert_se(sd_dhcp_client_stop(client) >= 0
);
sd_dhcp_client_unref(client);
test_fd[1] = safe_close(test_fd[1]);