tests: Make OVS_APP_EXIT_AND_WAIT() wait for process termination
authorLance Richardson <lrichard@redhat.com>
Wed, 2 Mar 2016 21:40:45 +0000 (16:40 -0500)
committerBen Pfaff <blp@ovn.org>
Fri, 18 Mar 2016 23:53:11 +0000 (16:53 -0700)
commitf9b11f2a09b45c87995d69588fc0a9f03661725e
tree8715405d13bb11e94215b1770b6f0f50fa5d4c01
parent685f4dfe09f2b0ed859dfcbc7e454c6f7196cefb
tests: Make OVS_APP_EXIT_AND_WAIT() wait for process termination

Currently OVS_APP_EXIT_AND_WAIT() only waits for the pid file
to be removed.  When using gcov (and likely other utilities),
we need to ensure that the application has actually exited.

Also adding AT_CHECK() around the exit request to allow simplification
of tests using open-coded versions of this macro.

Signed-off-by: Lance Richardson <lrichard@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
tests/ovs-macros.at