diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-03-24 08:45:05 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-27 08:45:47 -0700 |
commit | c81f843d0901c79150b1bf2fe528ad0c48267c24 (patch) | |
tree | dc02b76fca792f3a344db4a17ade7156a1af184b /t/helper | |
parent | 0489289de2d70d86ccb20cf5870bd697fd7cf1a2 (diff) | |
download | git-c81f843d0901c79150b1bf2fe528ad0c48267c24.tar.gz |
t/helper: merge test-write-cache into test-toolnd/combined-test-helper
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-tool.c | 1 | ||||
-rw-r--r-- | t/helper/test-tool.h | 1 | ||||
-rw-r--r-- | t/helper/test-write-cache.c | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/t/helper/test-tool.c b/t/helper/test-tool.c index 068adf47d6..87066ced62 100644 --- a/t/helper/test-tool.c +++ b/t/helper/test-tool.c @@ -41,6 +41,7 @@ static struct test_cmd cmds[] = { { "subprocess", cmd__subprocess }, { "urlmatch-normalization", cmd__urlmatch_normalization }, { "wildmatch", cmd__wildmatch }, + { "write-cache", cmd__write_cache }, }; int cmd_main(int argc, const char **argv) diff --git a/t/helper/test-tool.h b/t/helper/test-tool.h index 84c583e68f..7116ddfb94 100644 --- a/t/helper/test-tool.h +++ b/t/helper/test-tool.h @@ -35,5 +35,6 @@ int cmd__submodule_config(int argc, const char **argv); int cmd__subprocess(int argc, const char **argv); int cmd__urlmatch_normalization(int argc, const char **argv); int cmd__wildmatch(int argc, const char **argv); +int cmd__write_cache(int argc, const char **argv); #endif diff --git a/t/helper/test-write-cache.c b/t/helper/test-write-cache.c index b7ee039669..017dc30380 100644 --- a/t/helper/test-write-cache.c +++ b/t/helper/test-write-cache.c @@ -1,9 +1,10 @@ +#include "test-tool.h" #include "cache.h" #include "lockfile.h" static struct lock_file index_lock; -int cmd_main(int argc, const char **argv) +int cmd__write_cache(int argc, const char **argv) { int i, cnt = 1, lockfd; if (argc == 2) |