diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-03 21:04:22 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-05 20:01:07 -0600 |
commit | 949014bc2dec8757d4a01af1e1d3dc7f394fe9a5 (patch) | |
tree | 2eb84383e113524738c829c6df095307f4e84fcf | |
parent | ef468d692bee233b37d7853098612c5b2d17423f (diff) |
librelib: print to stderr if it can't find the library
-rwxr-xr-x | src/librelib | 1 | ||||
-rw-r--r-- | test/librelib-test.sh | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/librelib b/src/librelib index 3b12c93..dc4969f 100755 --- a/src/librelib +++ b/src/librelib @@ -64,6 +64,7 @@ main() { return 0; fi done + printf 'librelib: could not find library `%s`\n' "$lib" >> /dev/stderr return 1 } diff --git a/test/librelib-test.sh b/test/librelib-test.sh index aeb9a8c..8cc2a65 100644 --- a/test/librelib-test.sh +++ b/test/librelib-test.sh @@ -67,6 +67,6 @@ it_fails_to_find_phony() { librelib phony >$tmpdir/stdout 2>$tmpdir/stderr || ret=$? [[ -z "$(cat $tmpdir/stdout)" ]] - [[ -z "$(cat $tmpdir/stderr)" ]] + [[ -n "$(cat $tmpdir/stderr)" ]] [[ $ret != 0 ]] } |