X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fhelp-test;h=bd0111c995b905a21ec706723fe806514240aaa4;hb=2593df527168ad3502f0d44f4feae76133fc271b;hp=f7df725eea611797c333ba7a5a759cf31b9171f0;hpb=3bd8494da0dfef973c1328b16cd848f144e3ac27;p=notmuch diff --git a/test/help-test b/test/help-test index f7df725e..bd0111c9 100755 --- a/test/help-test +++ b/test/help-test @@ -9,4 +9,13 @@ test_expect_success 'notmuch help' 'notmuch help' test_expect_success 'notmuch help tag' 'notmuch help tag' test_expect_success 'notmuch --version' 'notmuch --version' +test_begin_subtest "notmuch --stderr=stderr help %" +notmuch --stderr=stderr help % +test_expect_equal "$(cat stderr)" " +Sorry, % is not a known command. There's not much I can do to help." + +test_begin_subtest "notmuch --stderr=- help %" +test_expect_equal "$(notmuch --stderr=- help %)" " +Sorry, % is not a known command. There's not much I can do to help." + test_done