diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-03-24 07:44:49 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-27 15:45:47 (GMT) |
commit | b8d5cf4f96f6e57ddc91dfcc530e47c878aff598 (patch) | |
tree | e34a35835213b7e7e846dea029081e7c02519510 /t/helper | |
parent | c033cc15087da35edf2c4d634d664a73eed6c5e8 (diff) | |
download | git-b8d5cf4f96f6e57ddc91dfcc530e47c878aff598.zip git-b8d5cf4f96f6e57ddc91dfcc530e47c878aff598.tar.gz git-b8d5cf4f96f6e57ddc91dfcc530e47c878aff598.tar.bz2 |
t/helper: merge test-path-utils into test-tool
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper')
-rw-r--r-- | t/helper/test-path-utils.c | 3 | ||||
-rw-r--r-- | t/helper/test-tool.c | 1 | ||||
-rw-r--r-- | t/helper/test-tool.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/t/helper/test-path-utils.c b/t/helper/test-path-utils.c index 2b3c509..e115d44 100644 --- a/t/helper/test-path-utils.c +++ b/t/helper/test-path-utils.c @@ -1,3 +1,4 @@ +#include "test-tool.h" #include "cache.h" #include "string-list.h" @@ -170,7 +171,7 @@ static struct test_data dirname_data[] = { { NULL, NULL } }; -int cmd_main(int argc, const char **argv) +int cmd__path_utils(int argc, const char **argv) { if (argc == 3 && !strcmp(argv[1], "normalize_path_copy")) { char *buf = xmallocz(strlen(argv[2])); diff --git a/t/helper/test-tool.c b/t/helper/test-tool.c index bca32f2..baec861 100644 --- a/t/helper/test-tool.c +++ b/t/helper/test-tool.c @@ -24,6 +24,7 @@ static struct test_cmd cmds[] = { { "mergesort", cmd__mergesort }, { "mktemp", cmd__mktemp }, { "online-cpus", cmd__online_cpus }, + { "path-utils", cmd__path_utils }, { "sha1", cmd__sha1 }, }; diff --git a/t/helper/test-tool.h b/t/helper/test-tool.h index aeabc97..3b7ced0 100644 --- a/t/helper/test-tool.h +++ b/t/helper/test-tool.h @@ -18,6 +18,7 @@ int cmd__match_trees(int argc, const char **argv); int cmd__mergesort(int argc, const char **argv); int cmd__mktemp(int argc, const char **argv); int cmd__online_cpus(int argc, const char **argv); +int cmd__path_utils(int argc, const char **argv); int cmd__sha1(int argc, const char **argv); #endif |