- zebra_begin_trans(zh, 1);
- zebra_repository_update(zh, "sample-marc");
- zebra_end_trans(zh);
+ YAZ_CHECK(zebra_begin_trans(zh, 1) == ZEBRA_OK);
+
+ sprintf(path, "%.200s/sample-marc", tl_get_srcdir());
+ zebra_repository_update(zh, path);
+ YAZ_CHECK(zebra_end_trans(zh) == ZEBRA_OK);