git apply --directory broken for new files
[gitweb.git] / t / test-lib.sh
index 8e2849b5ce915c3984894628e8e3ce990812ddfd..35698361bac232412d51f2b64c45c7ab5a5041d2 100644 (file)
@@ -112,8 +112,9 @@ if test -n "$color"; then
                        *) test -n "$quiet" && return;;
                esac
                shift
-               echo "* $*"
+               printf "* $*"
                tput sgr0
+               echo
                )
        }
 else
@@ -379,7 +380,7 @@ test_external_without_stderr () {
 
 test_must_fail () {
        "$@"
-       test $? -gt 0 -a $? -le 129
+       test $? -gt 0 -a $? -le 129 -o $? -gt 192
 }
 
 # test_cmp is a helper function to compare actual and expected output.