From 8c5882de565aeaecc76362c9227f844266e762bf Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 24 Jan 2021 01:51:14 -0300 Subject: Add test to for help flags --- tests/lib.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/lib.sh') diff --git a/tests/lib.sh b/tests/lib.sh index fb50d8a..901ceb9 100755 --- a/tests/lib.sh +++ b/tests/lib.sh @@ -12,3 +12,11 @@ assert_status() { exit 1 fi } + +assert_empty_stderr() { + if [ "$(cat "$ERR")" != '' ]; then + echo "Expected STDERR ($ERR) to be empty, but has content:" + cat "$ERR" + exit 1 + fi +} -- cgit v1.2.3