chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test-dhcp-client: add a kludge to make valgrind happy
[elogind.git]
/
src
/
libsystemd-network
/
test-dhcp-client.c
diff --git
a/src/libsystemd-network/test-dhcp-client.c
b/src/libsystemd-network/test-dhcp-client.c
index 831ec190592985c5ed01e440dbc93c705a6d673e..8e88641430389404e8a647196a1c9db9cf12a2ea 100644
(file)
--- a/
src/libsystemd-network/test-dhcp-client.c
+++ b/
src/libsystemd-network/test-dhcp-client.c
@@
-521,5
+521,12
@@
int main(int argc, char *argv[]) {
test_discover_message(e);
test_addr_acq(e);
+#ifdef VALGRIND
+ /* Make sure the async_close thread has finished.
+ * valgrind would report some of the phread_* structures
+ * as not cleaned up properly. */
+ sleep(1);
+#endif
+
return 0;
}