Skip to content

Commit 5dba359

Browse files
peffgitster
authored andcommitted
tests: remove exit after test_done call
test_done always exits, so this line is never executed. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f3a186f commit 5dba359

17 files changed

+0
-26
lines changed

t/lib-git-svn.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ if test -n "$NO_SVN_TESTS"
77
then
88
say 'skipping git svn tests, NO_SVN_TESTS defined'
99
test_done
10-
exit
1110
fi
1211

1312
GIT_DIR=$PWD/.git
@@ -19,7 +18,6 @@ if test $? -ne 1
1918
then
2019
say 'skipping git svn tests, svn not found'
2120
test_done
22-
exit
2321
fi
2422

2523
svnrepo=$PWD/svnrepo
@@ -43,7 +41,6 @@ then
4341
fi
4442
say "$err"
4543
test_done
46-
exit
4744
fi
4845

4946
rawsvnrepo="$svnrepo"
@@ -144,7 +141,6 @@ require_svnserve () {
144141
then
145142
say 'skipping svnserve test. (set $SVNSERVE_PORT to enable)'
146143
test_done
147-
exit
148144
fi
149145
}
150146

t/lib-httpd.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ then
88
say "skipping test, network testing disabled by default"
99
say "(define GIT_TEST_HTTPD to enable)"
1010
test_done
11-
exit
1211
fi
1312

1413
HTTPD_PARA=""
@@ -36,7 +35,6 @@ if ! test -x "$LIB_HTTPD_PATH"
3635
then
3736
say "skipping test, no web server found at '$LIB_HTTPD_PATH'"
3837
test_done
39-
exit
4038
fi
4139

4240
HTTPD_VERSION=`$LIB_HTTPD_PATH -v | \
@@ -50,7 +48,6 @@ then
5048
then
5149
say "skipping test, at least Apache version 2 is required"
5250
test_done
53-
exit
5451
fi
5552

5653
LIB_HTTPD_MODULE_PATH="$DEFAULT_HTTPD_MODULE_PATH"

t/t4004-diff-rename-symlink.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ if ! test_have_prereq SYMLINKS
1616
then
1717
say 'Symbolic links not supported, skipping tests.'
1818
test_done
19-
exit
2019
fi
2120

2221
test_expect_success \

t/t4011-diff-symlink.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ if ! test_have_prereq SYMLINKS
1313
then
1414
say 'Symbolic links not supported, skipping tests.'
1515
test_done
16-
exit
1716
fi
1817

1918
cat > expected << EOF

t/t4023-diff-rename-typechange.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ if ! test_have_prereq SYMLINKS
88
then
99
say 'Symbolic links not supported, skipping tests.'
1010
test_done
11-
exit
1211
fi
1312

1413
test_expect_success setup '

t/t4114-apply-typechange.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ if ! test_have_prereq SYMLINKS
1313
then
1414
say 'Symbolic links not supported, skipping tests.'
1515
test_done
16-
exit
1716
fi
1817

1918
test_expect_success 'setup repository and commits' '

t/t4115-apply-symlink.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ if ! test_have_prereq SYMLINKS
1313
then
1414
say 'Symbolic links not supported, skipping tests.'
1515
test_done
16-
exit
1716
fi
1817

1918
test_expect_success setup '

t/t4122-apply-symlink-inside.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ if ! test_have_prereq SYMLINKS
77
then
88
say 'Symbolic links not supported, skipping tests.'
99
test_done
10-
exit
1110
fi
1211

1312
lecho () {

t/t5503-tagfollow.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ case $(uname -s) in
88
*MINGW*)
99
say "GIT_DEBUG_SEND_PACK not supported - skipping tests"
1010
test_done
11-
exit
1211
esac
1312

1413
# End state of the repository:

t/t5522-pull-symlink.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ if ! test_have_prereq SYMLINKS
88
then
99
say 'Symbolic links not supported, skipping tests.'
1010
test_done
11-
exit
1211
fi
1312

1413
# The scenario we are building:

0 commit comments

Comments
 (0)