Remove ON_EXIT.

This commit is contained in:
Daniel Nichter
2011-12-07 10:48:47 -07:00
parent 578896c217
commit c486bf8461
2 changed files with 1 additions and 12 deletions

View File

@@ -1,9 +1,8 @@
#!/usr/bin/env bash
TESTS=8
TESTS=7
TMPDIR="$TEST_TMPDIR"
ON_EXIT=":"
local file="$TMPDIR/pid-file"
source "$LIB_DIR/log_warn_die.sh"
@@ -31,15 +30,9 @@ cmd_ok \
"test ! -f $file" \
"PID file removed"
is \
"$ON_EXIT" \
":; remove_pid_file $file" \
"Sets ON_EXIT to remove PID file"
# ###########################################################################
# PID file already exists and proc is running.
# ###########################################################################
ON_EXIT=""
echo $$ > $file
(