lease-server-test: Destroy server on shutdown 09/26209/1
authorDamian Hobson-Garcia <dhobsong@igel.co.jp>
Tue, 9 Mar 2021 04:25:41 +0000 (13:25 +0900)
committerDamian Hobson-Garcia <dhobsong@igel.co.jp>
Mon, 29 Mar 2021 03:14:04 +0000 (12:14 +0900)
commit220eb2fad6c21338c32989e69f45646b4e8d5f0f
treeed0e180644a2f365b34501cfa1c0d3d39f0d73d9
parentf991de200799118355fd75237a740321bda7aaa7
lease-server-test: Destroy server on shutdown

libcheck tests normally run each test in a separate process
so the server objects will automatically be destroyed after
each test.  If the test suite is run with CK_FORK=no, for
example when debugging the test with gdb, failing to
destory the server object will leave the test sockets
from the previous test open, which will stop the next
test from creating its own sockets.

Bug-AGL: SPEC-3816

Change-Id: I42a0976c392bdc19bb60acc78178aac8ee3e14ce
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
drm-lease-manager/test/lease-server-test.c