1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
#!@SH_PROG@
# -*- shell-script -*-
test_not_running()
{
typeset -a errs=()
_Dbg_errmsg() { errs+=$1; }
typeset -i _Dbg_running=1
_Dbg_running=1
_Dbg_not_running
assertFalse 'Should report running.' "$?"
assertEquals 0 ${#errs[@]}
_Dbg_running=0
_Dbg_not_running
assertTrue 'Should report not running.' "$?"
assertEquals 1 ${#errs[@]}
}
top_srcdir=@top_srcdir@
top_srcdir=${top_srcdir%%/}/
. ${top_srcdir}/lib/run.sh
# load shunit2
srcdir=@srcdir@
srcdir=${srcdir}/
. ${srcdir}/shunit2
|