Test: killed backend in snmp tests

This commit is contained in:
Olof hagsand 2022-10-08 17:19:24 +02:00
parent 575429caa1
commit dd1e5966fb
6 changed files with 51 additions and 3 deletions

View file

@ -206,6 +206,16 @@ function testrun_removeRows()
function testexit()
{
stop_snmp
if [ $BE -ne 0 ]; then
new "Kill backend"
# Check if premature kill
pid=$(pgrep -u root -f clixon_backend)
if [ -z "$pid" ]; then
err "backend already dead"
fi
# kill backend
stop_backend -f $cfg
fi
}
new "SNMP tests"