No need to spawn a child 'rm' process when we can do it ourselves.
* tests/virstoragetest.c (testCleanupImages): Use dedicated
helper.
Signed-off-by: Eric Blake <eblake@redhat.com>
static void
testCleanupImages(void)
{
- virCommandPtr cmd;
-
VIR_FREE(qemuimg);
VIR_FREE(absraw);
VIR_FREE(canonraw);
return;
}
- cmd = virCommandNewArgList("rm", "-rf", datadir, NULL);
- ignore_value(virCommandRun(cmd, NULL));
- virCommandFree(cmd);
+ virFileDeleteTree(datadir);
}
static int