static void testParseErrorReported(CuTest *tc) {
    augeas *aug = NULL;
    int nmatches, r;

    aug = aug_init(root, loadpath, AUG_NO_MODL_AUTOLOAD);
    CuAssertPtrNotNull(tc, aug);

    r = aug_set(aug, "/augeas/load/Bad/lens", "Yum.lns");
    CuAssertRetSuccess(tc, r);

    r = aug_set(aug, "/augeas/load/Bad/incl", "/etc/fstab");
    CuAssertRetSuccess(tc, r);

    r = aug_load(aug);
    CuAssertRetSuccess(tc, r);

    nmatches = aug_match(aug, "/augeas/files/etc/fstab/error", NULL);
    CuAssertIntEquals(tc, 1, nmatches);

    aug_close(aug);
}
static void testParseErrorReported(CuTest *tc) {
    augeas *aug = NULL;
    int nmatches, r;

    aug = aug_init(root, loadpath, AUG_NO_MODL_AUTOLOAD);
    CuAssertPtrNotNull(tc, aug);

    r = aug_set(aug, "/augeas/load/Bad/lens", "Yum.lns");
    CuAssertRetSuccess(tc, r);

    r = aug_set(aug, "/augeas/load/Bad/incl", "/etc/fstab");
    CuAssertRetSuccess(tc, r);

    r = aug_load(aug);
    CuAssertRetSuccess(tc, r);

    nmatches = aug_match(aug, "/augeas/files/etc/fstab/error", NULL);
    CuAssertIntEquals(tc, 1, nmatches);

    aug_close(aug);
}