Skip to content

Commit d17e67e

Browse files
committed
tests: change comments to c89 style
1 parent ffb0763 commit d17e67e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tests/config/read.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ void test_config_read__get_mapped(void)
964964
" key9 = off\n");
965965
cl_git_pass(git_config_open_ondisk(&cfg, "./testconfig"));
966966

967-
// check parsing bool and string
967+
/* check parsing bool and string */
968968
cl_git_pass(git_config_get_mapped(&val, cfg, "header.key1", _test_map1, ARRAY_SIZE(_test_map1)));
969969
cl_assert_equal_i(val, MAP_TRUE);
970970
cl_git_pass(git_config_get_mapped(&val, cfg, "header.key2", _test_map1, ARRAY_SIZE(_test_map1)));
@@ -986,7 +986,7 @@ void test_config_read__get_mapped(void)
986986

987987
cl_git_fail(git_config_get_mapped(&val, cfg, "header.key7", _test_map1, ARRAY_SIZE(_test_map1)));
988988

989-
// check parsing int values
989+
/* check parsing int values */
990990
cl_git_pass(git_config_get_mapped(&val, cfg, "header.key1", _test_map2, ARRAY_SIZE(_test_map2)));
991991
cl_git_pass(git_config_get_int32(&known_good, cfg, "header.key1"));
992992
cl_assert_equal_i(val, known_good);

tests/remote/fetch.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void do_time_travelling_fetch(git_oid *commit1id, git_oid *commit2id,
7272
.strings = &refspec_strs,
7373
};
7474

75-
// create two commits in repo 1 and a reference to them
75+
/* create two commits in repo 1 and a reference to them */
7676
{
7777
git_oid empty_tree_id;
7878
git_tree *empty_tree;
@@ -92,7 +92,7 @@ void do_time_travelling_fetch(git_oid *commit1id, git_oid *commit2id,
9292
git_treebuilder_free(tb);
9393
}
9494

95-
// fetch the reference via the remote
95+
/* fetch the reference via the remote */
9696
{
9797
git_remote *remote;
9898

@@ -103,7 +103,7 @@ void do_time_travelling_fetch(git_oid *commit1id, git_oid *commit2id,
103103
git_remote_free(remote);
104104
}
105105

106-
// assert that repo2 references the second commit
106+
/* assert that repo2 references the second commit */
107107
{
108108
const git_oid *target;
109109
git_reference *ref;
@@ -113,7 +113,7 @@ void do_time_travelling_fetch(git_oid *commit1id, git_oid *commit2id,
113113
git_reference_free(ref);
114114
}
115115

116-
// set the reference in repo1 to point to the older commit
116+
/* set the reference in repo1 to point to the older commit */
117117
{
118118
git_reference *ref;
119119
git_reference *ref2;
@@ -124,7 +124,7 @@ void do_time_travelling_fetch(git_oid *commit1id, git_oid *commit2id,
124124
git_reference_free(ref2);
125125
}
126126

127-
// fetch the reference again
127+
/* fetch the reference again */
128128
{
129129
git_remote *remote;
130130

@@ -144,7 +144,7 @@ void test_remote_fetch__dont_update_refs_if_not_descendant_and_not_force(void) {
144144

145145
do_time_travelling_fetch(&commit1id, &commit2id, false);
146146

147-
// assert that the reference in repo2 has not changed
147+
/* assert that the reference in repo2 has not changed */
148148
cl_git_pass(git_reference_lookup(&ref, repo2, REPO2_REFNAME));
149149
target = git_reference_target(ref);
150150
cl_assert_equal_b(git_oid_cmp(target, &commit2id), 0);
@@ -160,7 +160,7 @@ void test_remote_fetch__do_update_refs_if_not_descendant_and_force(void) {
160160

161161
do_time_travelling_fetch(&commit1id, &commit2id, true);
162162

163-
// assert that the reference in repo2 has changed
163+
/* assert that the reference in repo2 has changed */
164164
cl_git_pass(git_reference_lookup(&ref, repo2, REPO2_REFNAME));
165165
target = git_reference_target(ref);
166166
cl_assert_equal_b(git_oid_cmp(target, &commit1id), 0);

0 commit comments

Comments
 (0)