tests: remove exit after test_done call

test_done always exits, so this line is never executed.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King 2009-04-03 15:31:10 -04:00 committed by Junio C Hamano
parent f3a186ffad
commit 5dba359124
17 changed files with 0 additions and 26 deletions

View File

@ -7,7 +7,6 @@ if test -n "$NO_SVN_TESTS"
then then
say 'skipping git svn tests, NO_SVN_TESTS defined' say 'skipping git svn tests, NO_SVN_TESTS defined'
test_done test_done
exit
fi fi
GIT_DIR=$PWD/.git GIT_DIR=$PWD/.git
@ -19,7 +18,6 @@ if test $? -ne 1
then then
say 'skipping git svn tests, svn not found' say 'skipping git svn tests, svn not found'
test_done test_done
exit
fi fi
svnrepo=$PWD/svnrepo svnrepo=$PWD/svnrepo
@ -43,7 +41,6 @@ then
fi fi
say "$err" say "$err"
test_done test_done
exit
fi fi
rawsvnrepo="$svnrepo" rawsvnrepo="$svnrepo"
@ -144,7 +141,6 @@ require_svnserve () {
then then
say 'skipping svnserve test. (set $SVNSERVE_PORT to enable)' say 'skipping svnserve test. (set $SVNSERVE_PORT to enable)'
test_done test_done
exit
fi fi
} }

View File

@ -8,7 +8,6 @@ then
say "skipping test, network testing disabled by default" say "skipping test, network testing disabled by default"
say "(define GIT_TEST_HTTPD to enable)" say "(define GIT_TEST_HTTPD to enable)"
test_done test_done
exit
fi fi
HTTPD_PARA="" HTTPD_PARA=""
@ -36,7 +35,6 @@ if ! test -x "$LIB_HTTPD_PATH"
then then
say "skipping test, no web server found at '$LIB_HTTPD_PATH'" say "skipping test, no web server found at '$LIB_HTTPD_PATH'"
test_done test_done
exit
fi fi
HTTPD_VERSION=`$LIB_HTTPD_PATH -v | \ HTTPD_VERSION=`$LIB_HTTPD_PATH -v | \
@ -50,7 +48,6 @@ then
then then
say "skipping test, at least Apache version 2 is required" say "skipping test, at least Apache version 2 is required"
test_done test_done
exit
fi fi
LIB_HTTPD_MODULE_PATH="$DEFAULT_HTTPD_MODULE_PATH" LIB_HTTPD_MODULE_PATH="$DEFAULT_HTTPD_MODULE_PATH"

View File

@ -16,7 +16,6 @@ if ! test_have_prereq SYMLINKS
then then
say 'Symbolic links not supported, skipping tests.' say 'Symbolic links not supported, skipping tests.'
test_done test_done
exit
fi fi
test_expect_success \ test_expect_success \

View File

@ -13,7 +13,6 @@ if ! test_have_prereq SYMLINKS
then then
say 'Symbolic links not supported, skipping tests.' say 'Symbolic links not supported, skipping tests.'
test_done test_done
exit
fi fi
cat > expected << EOF cat > expected << EOF

View File

@ -8,7 +8,6 @@ if ! test_have_prereq SYMLINKS
then then
say 'Symbolic links not supported, skipping tests.' say 'Symbolic links not supported, skipping tests.'
test_done test_done
exit
fi fi
test_expect_success setup ' test_expect_success setup '

View File

@ -13,7 +13,6 @@ if ! test_have_prereq SYMLINKS
then then
say 'Symbolic links not supported, skipping tests.' say 'Symbolic links not supported, skipping tests.'
test_done test_done
exit
fi fi
test_expect_success 'setup repository and commits' ' test_expect_success 'setup repository and commits' '

View File

@ -13,7 +13,6 @@ if ! test_have_prereq SYMLINKS
then then
say 'Symbolic links not supported, skipping tests.' say 'Symbolic links not supported, skipping tests.'
test_done test_done
exit
fi fi
test_expect_success setup ' test_expect_success setup '

View File

@ -7,7 +7,6 @@ if ! test_have_prereq SYMLINKS
then then
say 'Symbolic links not supported, skipping tests.' say 'Symbolic links not supported, skipping tests.'
test_done test_done
exit
fi fi
lecho () { lecho () {

View File

@ -8,7 +8,6 @@ case $(uname -s) in
*MINGW*) *MINGW*)
say "GIT_DEBUG_SEND_PACK not supported - skipping tests" say "GIT_DEBUG_SEND_PACK not supported - skipping tests"
test_done test_done
exit
esac esac
# End state of the repository: # End state of the repository:

View File

@ -8,7 +8,6 @@ if ! test_have_prereq SYMLINKS
then then
say 'Symbolic links not supported, skipping tests.' say 'Symbolic links not supported, skipping tests.'
test_done test_done
exit
fi fi
# The scenario we are building: # The scenario we are building:

View File

@ -17,7 +17,6 @@ if git http-push > /dev/null 2>&1 || [ $? -eq 128 ]
then then
say "skipping test, USE_CURL_MULTI is not defined" say "skipping test, USE_CURL_MULTI is not defined"
test_done test_done
exit
fi fi
. "$TEST_DIRECTORY"/lib-httpd.sh . "$TEST_DIRECTORY"/lib-httpd.sh

View File

@ -92,7 +92,6 @@ if ! echo 'echo space > "$1"' > "e space.sh"
then then
say "Skipping; FS does not support spaces in filenames" say "Skipping; FS does not support spaces in filenames"
test_done test_done
exit
fi fi
test_expect_success 'editor with a space' ' test_expect_success 'editor with a space' '

View File

@ -11,7 +11,6 @@ if test $? -ne 1
then then
say 'skipping git cvsexportcommit tests, cvs not found' say 'skipping git cvsexportcommit tests, cvs not found'
test_done test_done
exit
fi fi
CVSROOT=$(pwd)/cvsroot CVSROOT=$(pwd)/cvsroot

View File

@ -15,12 +15,10 @@ if test $? -ne 1
then then
say 'skipping git-cvsserver tests, cvs not found' say 'skipping git-cvsserver tests, cvs not found'
test_done test_done
exit
fi fi
perl -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || { perl -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || {
say 'skipping git-cvsserver tests, Perl SQLite interface unavailable' say 'skipping git-cvsserver tests, Perl SQLite interface unavailable'
test_done test_done
exit
} }
unset GIT_DIR GIT_CONFIG unset GIT_DIR GIT_CONFIG

View File

@ -51,12 +51,10 @@ if test $? -ne 1
then then
say 'skipping git-cvsserver tests, cvs not found' say 'skipping git-cvsserver tests, cvs not found'
test_done test_done
exit
fi fi
perl -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || { perl -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || {
say 'skipping git-cvsserver tests, Perl SQLite interface unavailable' say 'skipping git-cvsserver tests, Perl SQLite interface unavailable'
test_done test_done
exit
} }
unset GIT_DIR GIT_CONFIG unset GIT_DIR GIT_CONFIG

View File

@ -68,7 +68,6 @@ gitweb_run () {
perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || { perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || {
say 'skipping gitweb tests, perl version is too old' say 'skipping gitweb tests, perl version is too old'
test_done test_done
exit
} }
gitweb_init gitweb_init

View File

@ -14,7 +14,6 @@ if ! type cvs >/dev/null 2>&1
then then
say 'skipping cvsimport tests, cvs not found' say 'skipping cvsimport tests, cvs not found'
test_done test_done
exit
fi fi
cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'` cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'`
@ -24,12 +23,10 @@ case "$cvsps_version" in
'') '')
say 'skipping cvsimport tests, cvsps not found' say 'skipping cvsimport tests, cvsps not found'
test_done test_done
exit
;; ;;
*) *)
say 'skipping cvsimport tests, unsupported cvsps version' say 'skipping cvsimport tests, unsupported cvsps version'
test_done test_done
exit
;; ;;
esac esac