From 48c2c8c2689bf6420d7309c62d319a9428c8b31a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 Apr 2009 12:51:19 +0200 Subject: test/main: Set ZERR trap for more information why the test failed --- test/main | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/main') diff --git a/test/main b/test/main index ada8709..29957e0 100755 --- a/test/main +++ b/test/main @@ -1,6 +1,8 @@ #!/usr/bin/env zsh setopt err_exit +trap "print -P '\n%N:%i: %B%F{red}Test faild!%F{default}%b'" ZERR + function stringcmp { diff -u <(echo $1) <(echo $2) } -- cgit v1.2.3