Commit d27e9083 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Check the VPF return values

parent 12f71d4a
......@@ -66,7 +66,7 @@ static void
vut_vpf_remove(void)
{
if (VUT.pfh) {
VPF_Remove(VUT.pfh);
AZ(VPF_Remove(VUT.pfh));
VUT.pfh = NULL;
}
}
......@@ -326,7 +326,7 @@ VUT_Setup(void)
/* Write PID and setup exit handler */
if (VUT.pfh != NULL) {
VPF_Write(VUT.pfh);
AZ(VPF_Write(VUT.pfh));
AZ(atexit(vut_vpf_remove));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment