summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/librelib1
-rw-r--r--test/librelib-test.sh2
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 ]]
}