tests: improve lcov stats for memory_api.c 68/27568/2
authorDave Barach <dave@barachs.net>
Mon, 15 Jun 2020 21:38:12 +0000 (17:38 -0400)
committerDave Wallace <dwallacelf@gmail.com>
Sat, 20 Jun 2020 01:58:34 +0000 (01:58 +0000)
commit3a49130c75caa153cc65471fd860340cb13dcd90
treea6c69e39e1eefe324103941a5893f925a9c2bed5
parent12b517b3ffe3ca4b447263548cfa2bcac857c836
tests: improve lcov stats for memory_api.c

Cover vl_mem_api_dead_client_scan(...), which is not so simple.  Spin
up vpp_api_test using pexpect.spawn, make it bootstrap a private
memory segment, kill vpp_api_test, and wait for the dead client
scanner to run a few times so that it declares the client dead.

The test only runs if GCOV_TESTS=yes is set in the environment.

Type: test

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I3c712fa011df2e23761a2e73c1aba0c7e50123a6
test/test_vlib.py