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

@ -136,6 +136,17 @@ function testinit(){
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
}
ENTITY_OID=".1.3.6.1.2.1.47.1.1.1"