remove redundant tests
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
diff --git a/regress/repository/repository_test.c b/regress/repository/repository_test.c
index 1973fa4..7734cd5 100644
--- a/regress/repository/repository_test.c
+++ b/regress/repository/repository_test.c
@@ -29,39 +29,6 @@
#define GOT_REPO_PATH "../../../"
static int
-repo_open_test(const char *repo_path)
-{
- const struct got_error *err;
- struct got_repository *repo;
- const char *abspath;
- int ret;
-
- err = got_repo_open(&repo, repo_path);
- ret = (err == NULL && repo != NULL);
- got_repo_close(repo);
- return ret;
-}
-
-static int
-repo_get_head_ref(const char *repo_path)
-{
- const struct got_error *err;
- struct got_repository *repo;
- struct got_reference *head_ref;
- int ret;
-
- err = got_repo_open(&repo, repo_path);
- if (err != NULL || repo == NULL)
- return 0;
- err = got_ref_open(&head_ref, repo, GOT_REF_HEAD);
- if (err != NULL || head_ref == NULL)
- return 0;
- got_ref_close(head_ref);
- got_repo_close(repo);
- return 1;
-}
-
-static int
repo_resolve_head_ref(const char *repo_path)
{
const struct got_error *err;
@@ -100,8 +67,6 @@ main(int argc, const char *argv[])
return 1;
}
- RUN_TEST(repo_open_test(repo_path), "repo_open");
- RUN_TEST(repo_get_head_ref(repo_path), "get_head_ref");
RUN_TEST(repo_resolve_head_ref(repo_path), "resolve_head_ref");
return failure ? 1 : 0;