Skip to content
Snippets Groups Projects
Commit b30dfb13 authored by Niels Möller's avatar Niels Möller
Browse files

Don't use set -e, since it made the

cleanup code unreliable. FIXME: Check if any tests depended on this.

Rev: src/testsuite/functions.sh:1.42
parent d8606804
Branches
Tags
No related merge requests found
# Helper functions for the test scripts. # Helper functions for the test scripts.
# Any error count as failure.
set -e
# echo srcdir = $srcdir # echo srcdir = $srcdir
: ${TEST_HOME:=`pwd`/home} : ${TEST_HOME:=`pwd`/home}
...@@ -32,6 +29,8 @@ export LSHD_UTMP LSHD_WTMP LSHD_CONFIG_DIR ...@@ -32,6 +29,8 @@ export LSHD_UTMP LSHD_WTMP LSHD_CONFIG_DIR
: ${LSH_PIDFILE:="`pwd`/lsh.$$.pid"} : ${LSH_PIDFILE:="`pwd`/lsh.$$.pid"}
: ${LSHG_PIDFILE:="`pwd`/lshg.$$.pid"} : ${LSHG_PIDFILE:="`pwd`/lshg.$$.pid"}
# FIXME: Are these flags obsolete?
# Ignore any options the tester might have put in the environment. # Ignore any options the tester might have put in the environment.
# With bash, unset returns a non-zero exit status for non-existing # With bash, unset returns a non-zero exit status for non-existing
...@@ -41,7 +40,7 @@ unset LSHGFLAGS || : ...@@ -41,7 +40,7 @@ unset LSHGFLAGS || :
unset LSHFLAGS || : unset LSHFLAGS || :
PORT=11147 PORT=11147
ATEXIT='set +e' ATEXIT='true '
# We start with EXIT_FAILURE, and changing it to EXIT_SUCCESS only if # We start with EXIT_FAILURE, and changing it to EXIT_SUCCESS only if
# test_success is invoked. # test_success is invoked.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment