Skip to content

Commit 112edd6

Browse files
pcloudsgitster
authored andcommitted
t/helper: merge test-subprocess 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 b618821 commit 112edd6

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,14 +683,14 @@ TEST_BUILTINS_OBJS += test-sigchain.o
683683
TEST_BUILTINS_OBJS += test-strcmp-offset.o
684684
TEST_BUILTINS_OBJS += test-string-list.o
685685
TEST_BUILTINS_OBJS += test-submodule-config.o
686+
TEST_BUILTINS_OBJS += test-subprocess.o
686687

687688
TEST_PROGRAMS_NEED_X += test-dump-fsmonitor
688689
TEST_PROGRAMS_NEED_X += test-dump-untracked-cache
689690
TEST_PROGRAMS_NEED_X += test-fake-ssh
690691
TEST_PROGRAMS_NEED_X += test-line-buffer
691692
TEST_PROGRAMS_NEED_X += test-parse-options
692693
TEST_PROGRAMS_NEED_X += test-write-cache
693-
TEST_PROGRAMS_NEED_X += test-subprocess
694694
TEST_PROGRAMS_NEED_X += test-svn-fe
695695
TEST_PROGRAMS_NEED_X += test-tool
696696
TEST_PROGRAMS_NEED_X += test-urlmatch-normalization

t/helper/test-subprocess.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 "run-command.h"
34

4-
int cmd_main(int argc, const char **argv)
5+
int cmd__subprocess(int argc, const char **argv)
56
{
67
struct child_process cp = CHILD_PROCESS_INIT;
78
int nogit = 0;

t/helper/test-tool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ static struct test_cmd cmds[] = {
3838
{ "strcmp-offset", cmd__strcmp_offset },
3939
{ "string-list", cmd__string_list },
4040
{ "submodule-config", cmd__submodule_config },
41+
{ "subprocess", cmd__subprocess },
4142
};
4243

4344
int cmd_main(int argc, const char **argv)

t/helper/test-tool.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ int cmd__sigchain(int argc, const char **argv);
3232
int cmd__strcmp_offset(int argc, const char **argv);
3333
int cmd__string_list(int argc, const char **argv);
3434
int cmd__submodule_config(int argc, const char **argv);
35+
int cmd__subprocess(int argc, const char **argv);
3536

3637
#endif

t/t1501-work-tree.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ test_expect_success 'make_relative_path handles double slashes in GIT_DIR' '
341341

342342
test_expect_success 'relative $GIT_WORK_TREE and git subprocesses' '
343343
GIT_DIR=repo.git GIT_WORK_TREE=repo.git/work \
344-
test-subprocess --setup-work-tree rev-parse --show-toplevel >actual &&
344+
test-tool subprocess --setup-work-tree rev-parse --show-toplevel >actual &&
345345
echo "$(pwd)/repo.git/work" >expected &&
346346
test_cmp expected actual
347347
'

0 commit comments

Comments
 (0)