cmocka: Fix possible test state issues

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
1 file changed