test-dhcp-client: add a kludge to make valgrind happy
This commit is contained in:
parent
fe0885f8ce
commit
374c22b351
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue