lease-server-test: Destroy server on shutdown
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>
Wed, 31 Mar 2021 01:23:17 +0000 (10:23 +0900)
commiteea1e14902a445e51910ad970fdbc42368df68d5
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

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