add err msg for kvdb_close_testcase
@@ -97,8 +97,11 @@ MTF_DEFINE_UTEST(kvdb_api_test, kvdb_close_testcase)
hse_err_t rc;
rc = hse_kvdb_open(MPOOL_NAME, NULL, &KVDB_HANDLE);
- if (hse_err_to_errno(rc))
- exit(1);
+ if (hse_err_to_errno(rc)) {
+ char buf[128];
+ hse_err_to_string(rc, buf, sizeof(buf), NULL);
+ fprintf(stderr, "kvdb_close_testcase: %s", buf);
+ }
rc = hse_kvdb_close(KVDB_HANDLE);
KVDB_HANDLE = NULL;
