mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
regress: don't count temp dir creation as test (re: 2318de32
)
Note that shtests simply does a 'grep -c err_exit' and substracts 1 to count the number of regression tests in a test script. Not all test scripts make temp dirs, so subtracting 2 instead won't do. src/cmd/ksh93/tests/*.sh: - Escape the err_exit call in the routine to create a temporary directory so that it is not counted as a regression test. That bypasses the alias, so we have to pass $LINENO manually.
This commit is contained in:
parent
9ff692c2bb
commit
746ce73671
30 changed files with 30 additions and 30 deletions
|
@ -32,7 +32,7 @@ tmp=$(
|
|||
d=${TMPDIR:-/tmp}/ksh93.builtins.$$.${RANDOM:-0}
|
||||
mkdir -m700 -- "$d" && CDPATH= cd -P -- "$d" && pwd
|
||||
) || {
|
||||
err_exit 'mkdir failed'
|
||||
err\_exit $LINENO 'mkdir failed'
|
||||
exit 1
|
||||
}
|
||||
trap 'cd / && rm -rf "$tmp"' EXIT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue