From d17e67e6ab2765ce2c83fdf174d28e64400b7218 Mon Sep 17 00:00:00 2001 From: Peter Pettersson Date: Sun, 29 Aug 2021 12:19:49 +0200 Subject: tests: change comments to c89 style --- tests/config/read.c | 4 ++-- tests/remote/fetch.c | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/config/read.c b/tests/config/read.c index 109908750..badf5118e 100644 --- a/tests/config/read.c +++ b/tests/config/read.c @@ -964,7 +964,7 @@ void test_config_read__get_mapped(void) " key9 = off\n"); cl_git_pass(git_config_open_ondisk(&cfg, "./testconfig")); - // check parsing bool and string + /* check parsing bool and string */ cl_git_pass(git_config_get_mapped(&val, cfg, "header.key1", _test_map1, ARRAY_SIZE(_test_map1))); cl_assert_equal_i(val, MAP_TRUE); 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) cl_git_fail(git_config_get_mapped(&val, cfg, "header.key7", _test_map1, ARRAY_SIZE(_test_map1))); - // check parsing int values + /* check parsing int values */ cl_git_pass(git_config_get_mapped(&val, cfg, "header.key1", _test_map2, ARRAY_SIZE(_test_map2))); cl_git_pass(git_config_get_int32(&known_good, cfg, "header.key1")); cl_assert_equal_i(val, known_good); diff --git a/tests/remote/fetch.c b/tests/remote/fetch.c index 392801e0b..7e825ca16 100644 --- a/tests/remote/fetch.c +++ b/tests/remote/fetch.c @@ -72,7 +72,7 @@ void do_time_travelling_fetch(git_oid *commit1id, git_oid *commit2id, .strings = &refspec_strs, }; - // create two commits in repo 1 and a reference to them + /* create two commits in repo 1 and a reference to them */ { git_oid empty_tree_id; git_tree *empty_tree; @@ -92,7 +92,7 @@ void do_time_travelling_fetch(git_oid *commit1id, git_oid *commit2id, git_treebuilder_free(tb); } - // fetch the reference via the remote + /* fetch the reference via the remote */ { git_remote *remote; @@ -103,7 +103,7 @@ void do_time_travelling_fetch(git_oid *commit1id, git_oid *commit2id, git_remote_free(remote); } - // assert that repo2 references the second commit + /* assert that repo2 references the second commit */ { const git_oid *target; git_reference *ref; @@ -113,7 +113,7 @@ void do_time_travelling_fetch(git_oid *commit1id, git_oid *commit2id, git_reference_free(ref); } - // set the reference in repo1 to point to the older commit + /* set the reference in repo1 to point to the older commit */ { git_reference *ref; git_reference *ref2; @@ -124,7 +124,7 @@ void do_time_travelling_fetch(git_oid *commit1id, git_oid *commit2id, git_reference_free(ref2); } - // fetch the reference again + /* fetch the reference again */ { git_remote *remote; @@ -144,7 +144,7 @@ void test_remote_fetch__dont_update_refs_if_not_descendant_and_not_force(void) { do_time_travelling_fetch(&commit1id, &commit2id, false); - // assert that the reference in repo2 has not changed + /* assert that the reference in repo2 has not changed */ cl_git_pass(git_reference_lookup(&ref, repo2, REPO2_REFNAME)); target = git_reference_target(ref); 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) { do_time_travelling_fetch(&commit1id, &commit2id, true); - // assert that the reference in repo2 has changed + /* assert that the reference in repo2 has changed */ cl_git_pass(git_reference_lookup(&ref, repo2, REPO2_REFNAME)); target = git_reference_target(ref); cl_assert_equal_b(git_oid_cmp(target, &commit1id), 0); -- cgit v1.2.1