about summary refs log tree commit homepage
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-18 22:05:13 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-18 22:05:13 -0700
commitc41a08821bf11eefebda3ea3e536eda8f4b4629b (patch)
treeb07e578d957c32a2e6cbac3f3cd6dc18269f3f2e /t/test-lib.sh
parent7b01d94dd9287ac402d91451f1e93c9faaf913c4 (diff)
downloadrainbows-c41a08821bf11eefebda3ea3e536eda8f4b4629b.tar.gz
We now check for SIGKILL, too
Diffstat (limited to 't/test-lib.sh')
-rwxr-xr-xt/test-lib.sh13
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 ;;