diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-02-02 14:50:56 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-02-02 20:31:18 -0500 |
commit | 374c22b351e43ce4ef70ef0ad1bd1e4e520f9a28 (patch) | |
tree | 23710728859adc9279e22a78b896a4904bffa5ec | |
parent | fe0885f8ce0f49c8d7496344c39abbebc46c6155 (diff) |
test-dhcp-client: add a kludge to make valgrind happy
-rw-r--r-- | src/libsystemd-network/test-dhcp-client.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libsystemd-network/test-dhcp-client.c b/src/libsystemd-network/test-dhcp-client.c index 831ec19059..8e88641430 100644 --- 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; } |