Skip to content

Commit 9080e75

Browse files
pcloudsgitster
authored andcommitted
t/helper: merge (unused) test-match-trees into test-tool
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent cc6f663 commit 9080e75

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,13 +665,13 @@ TEST_BUILTINS_OBJS += test-genrandom.o
665665
TEST_BUILTINS_OBJS += test-hashmap.o
666666
TEST_BUILTINS_OBJS += test-index-version.o
667667
TEST_BUILTINS_OBJS += test-lazy-init-name-hash.o
668+
TEST_BUILTINS_OBJS += test-match-trees.o
668669
TEST_BUILTINS_OBJS += test-sha1.o
669670

670671
TEST_PROGRAMS_NEED_X += test-dump-fsmonitor
671672
TEST_PROGRAMS_NEED_X += test-dump-untracked-cache
672673
TEST_PROGRAMS_NEED_X += test-fake-ssh
673674
TEST_PROGRAMS_NEED_X += test-line-buffer
674-
TEST_PROGRAMS_NEED_X += test-match-trees
675675
TEST_PROGRAMS_NEED_X += test-mergesort
676676
TEST_PROGRAMS_NEED_X += test-mktemp
677677
TEST_PROGRAMS_NEED_X += test-online-cpus

t/helper/test-match-trees.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
#include "test-tool.h"
12
#include "cache.h"
23
#include "tree.h"
34

4-
int cmd_main(int ac, const char **av)
5+
int cmd__match_trees(int ac, const char **av)
56
{
67
struct object_id hash1, hash2, shifted;
78
struct tree *one, *two;

t/helper/test-tool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ static struct test_cmd cmds[] = {
2020
{ "hashmap", cmd__hashmap },
2121
{ "index-version", cmd__index_version },
2222
{ "lazy-init-name-hash", cmd__lazy_init_name_hash },
23+
{ "match-trees", cmd__match_trees },
2324
{ "sha1", cmd__sha1 },
2425
};
2526

t/helper/test-tool.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ int cmd__genrandom(int argc, const char **argv);
1414
int cmd__hashmap(int argc, const char **argv);
1515
int cmd__index_version(int argc, const char **argv);
1616
int cmd__lazy_init_name_hash(int argc, const char **argv);
17+
int cmd__match_trees(int argc, const char **argv);
1718
int cmd__sha1(int argc, const char **argv);
1819

1920
#endif

0 commit comments

Comments
 (0)