- YAZ_CHECK_EQ(passwd_db_file_plain(db, "no_such_file.txt"), -1);
- YAZ_CHECK_EQ(passwd_db_file_crypt(db, "no_such_file.txt"), -1);
+ yaz_snprintf(path, sizeof(path), "%s/no_such_file.txt", get_srcdir());
+ YAZ_CHECK_EQ(passwd_db_file_plain(db, path), -1);
+ YAZ_CHECK_EQ(passwd_db_file_crypt(db, path), -1);
+ yaz_snprintf(path, sizeof(path), "%s/tstpass.txt", get_srcdir());