summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/t00-core.c2
-rw-r--r--tests/t02-objread.c2
-rw-r--r--tests/t04-commit.c2
-rw-r--r--tests/t05-revwalk.c4
-rw-r--r--tests/t06-index.c2
-rw-r--r--tests/t10-refs.c10
-rwxr-xr-xtests/test_lib.h2
7 files changed, 12 insertions, 12 deletions
diff --git a/tests/t00-core.c b/tests/t00-core.c
index 31ed8c38b..e1aa6b8f9 100644
--- a/tests/t00-core.c
+++ b/tests/t00-core.c
@@ -241,7 +241,7 @@ BEGIN_TEST(path3, "prettify and validate a path to a file")
must_fail(ensure_file_path_normalized("d1/...", NULL, 0));
must_fail(ensure_file_path_normalized("d1/.../", NULL, 0));
must_fail(ensure_file_path_normalized("d1/.../d2", NULL, 0));
-
+
must_pass(ensure_file_path_normalized("/a", "/a", ROOTED_PATH));
must_pass(ensure_file_path_normalized("/./testrepo.git", "/testrepo.git", ROOTED_PATH));
must_pass(ensure_file_path_normalized("/./.git", "/.git", ROOTED_PATH));
diff --git a/tests/t02-objread.c b/tests/t02-objread.c
index 8f11e9e33..4bcff2742 100644
--- a/tests/t02-objread.c
+++ b/tests/t02-objread.c
@@ -210,7 +210,7 @@ BEGIN_TEST(readheader0, "read only the header of several packed objects")
git_odb_object_close(obj);
}
- git_odb_close(db);
+ git_odb_close(db);
END_TEST
BEGIN_TEST(readheader1, "read only the header of several loose objects")
diff --git a/tests/t04-commit.c b/tests/t04-commit.c
index b7e0afe1e..415017aba 100644
--- a/tests/t04-commit.c
+++ b/tests/t04-commit.c
@@ -359,7 +359,7 @@ BEGIN_TEST(details0, "query the details on a parsed commit")
git_repository *repo;
must_pass(git_repository_open(&repo, REPOSITORY_FOLDER));
-
+
for (i = 0; i < commit_count; ++i) {
git_oid id;
git_commit *commit;
diff --git a/tests/t05-revwalk.c b/tests/t05-revwalk.c
index ac5de2167..ab509ab94 100644
--- a/tests/t05-revwalk.c
+++ b/tests/t05-revwalk.c
@@ -74,7 +74,7 @@ static int get_commit_index(git_oid *raw_oid)
char oid[40];
git_oid_fmt(oid, raw_oid);
-
+
for (i = 0; i < commit_count; ++i)
if (memcmp(oid, commit_ids[i], 40) == 0)
return i;
@@ -108,7 +108,7 @@ static int test_walk(git_revwalk *walk, const git_oid *root,
}*/
}
- for (i = 0; i < results_count; ++i)
+ for (i = 0; i < results_count; ++i)
if (memcmp(possible_results[i],
result_array, result_bytes) == 0)
return GIT_SUCCESS;
diff --git a/tests/t06-index.c b/tests/t06-index.c
index 27819c02a..6a46719ed 100644
--- a/tests/t06-index.c
+++ b/tests/t06-index.c
@@ -145,7 +145,7 @@ BEGIN_TEST(write0, "write an index back to disk")
must_pass(cmp_files(TEST_INDEXBIG_PATH, "index_rewrite"));
git_index_free(index);
-
+
gitfo_unlink("index_rewrite");
END_TEST
diff --git a/tests/t10-refs.c b/tests/t10-refs.c
index 7b4ae5e1b..f975c8fba 100644
--- a/tests/t10-refs.c
+++ b/tests/t10-refs.c
@@ -431,7 +431,7 @@ BEGIN_TEST(pack0, "create a packfile for an empty folder")
const int mode = 0755; /* or 0777 ? */
must_pass(open_temp_repo(&repo, REPOSITORY_FOLDER));
-
+
git__joinpath_n(temp_path, 3, repo->path_repository, GIT_REFS_HEADS_DIR, "empty_dir");
must_pass(gitfo_mkdir_recurs(temp_path, mode));
@@ -446,12 +446,12 @@ BEGIN_TEST(pack1, "create a packfile from all the loose rn a repo")
char temp_path[GIT_PATH_MAX];
must_pass(open_temp_repo(&repo, REPOSITORY_FOLDER));
-
+
/* Ensure a known loose ref can be looked up */
must_pass(git_reference_lookup(&reference, repo, loose_tag_ref_name));
must_be_true((reference->type & GIT_REF_PACKED) == 0);
must_be_true(strcmp(reference->name, loose_tag_ref_name) == 0);
-
+
/*
* We are now trying to pack also a loose reference
* called `points_to_blob`, to make sure we can properly
@@ -913,7 +913,7 @@ BEGIN_TEST(list0, "try to list all the references in our test repo")
/* We have exactly 8 refs in total if we include the packed ones:
* there is a reference that exists both in the packfile and as
* loose, but we only list it once */
- must_be_true(ref_list.count == 8);
+ must_be_true(ref_list.count == 8);
git_strarray_free(&ref_list);
git_repository_free(repo);
@@ -925,7 +925,7 @@ BEGIN_TEST(list1, "try to list only the symbolic references")
must_pass(git_repository_open(&repo, REPOSITORY_FOLDER));
must_pass(git_reference_listall(&ref_list, repo, GIT_REF_SYMBOLIC));
- must_be_true(ref_list.count == 0); /* no symrefs in the test repo */
+ must_be_true(ref_list.count == 0); /* no symrefs in the test repo */
git_strarray_free(&ref_list);
git_repository_free(repo);
diff --git a/tests/test_lib.h b/tests/test_lib.h
index 69ad2edde..fc75ed771 100755
--- a/tests/test_lib.h
+++ b/tests/test_lib.h
@@ -15,7 +15,7 @@
#define BEGIN_SUITE(SNAME) \
git_testsuite *libgit2_suite_##SNAME(void) {\
git_testsuite *_gitsuite = git_testsuite_new(#SNAME);
-
+
#define ADD_TEST(TNAME) \
git_testsuite_add(_gitsuite, _gittest__##TNAME);