diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-18 22:05:13 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-18 22:05:13 -0700 |
commit | c41a08821bf11eefebda3ea3e536eda8f4b4629b (patch) | |
tree | b07e578d957c32a2e6cbac3f3cd6dc18269f3f2e /t/test-lib.sh | |
parent | 7b01d94dd9287ac402d91451f1e93c9faaf913c4 (diff) | |
download | rainbows-c41a08821bf11eefebda3ea3e536eda8f4b4629b.tar.gz |
We now check for SIGKILL, too
Diffstat (limited to 't/test-lib.sh')
-rwxr-xr-x | t/test-lib.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 54d1b2d..403e252 100755 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -85,6 +85,19 @@ dbgcat () { sed -e "s/^/$id:/" < $_file } +check_stderr () { + set +u + _r_err=${1-${r_err}} + set -u + if grep Error $_r_err + then + die "Errors found in $_r_err" + elif grep SIGKILL $_r_err + then + die "SIGKILL found in $_r_err" + fi +} + case $model in Rev) require_check rev Rev::VERSION ;; Revactor) require_check revactor Revactor::VERSION ;; |