X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tests%2Flib.sh.test;h=e8d5053be6ebec71118818ad1c3a7505b0787525;hb=0d362b7f25680421a0b29f1ac940004304785921;hp=171c7c23ad583f21bf29f3c898fe7e628c230f17;hpb=f89f49df44d2d04eac338ead2d0843304414889e;p=config%2Fdotfiles.git diff --git a/tests/lib.sh.test b/tests/lib.sh.test index 171c7c2..e8d5053 100644 --- a/tests/lib.sh.test +++ b/tests/lib.sh.test @@ -9,7 +9,7 @@ which() { echo /bin/ls else echo no doesnt-exist in /usr/bin /bin /usr/sbin /sbin - (exit 1) + return 1 fi } echo stdout which @@ -22,7 +22,7 @@ which() { echo /bin/ls else echo no doesnt-exist in /usr/bin /bin /usr/sbin /sbin >&2 - (exit 1) + return 1 fi } echo stderr which