about summary refs log tree commit homepage
path: root/t/test-lib.sh
diff options
context:
space:
mode:
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 ;;