From efcfec0ba1e1c594ab61621379516ab6c177c6c1 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Mon, 15 Mar 2021 23:12:35 +0100 Subject: [PATCH] fixup! Show an error when "builtin -h" fails to find a man page --- tests/checks/andandoror.fish | 6 ++++++ tests/checks/scoping.fish | 1 + 2 files changed, 7 insertions(+) diff --git a/tests/checks/andandoror.fish b/tests/checks/andandoror.fish index 2d937ade3..60f7a9a0a 100644 --- a/tests/checks/andandoror.fish +++ b/tests/checks/andandoror.fish @@ -113,22 +113,28 @@ echo comment after conjunction # --help works builtin and --help >/dev/null +# CHECKERR: fish: Missing man page {{.*}} echo $status and --help >/dev/null +# CHECKERR: fish: Missing man page {{.*}} echo $status # CHECK: 0 # CHECK: 0 builtin or --help >/dev/null +# CHECKERR: fish: Missing man page {{.*}} echo $status or --help >/dev/null +# CHECKERR: fish: Missing man page {{.*}} echo $status # CHECK: 0 # CHECK: 0 builtin not --help >/dev/null +# CHECKERR: fish: Missing man page {{.*}} echo $status not --help >/dev/null +# CHECKERR: fish: Missing man page {{.*}} echo $status # CHECK: 0 # CHECK: 0 diff --git a/tests/checks/scoping.fish b/tests/checks/scoping.fish index c07848c8c..8153da115 100644 --- a/tests/checks/scoping.fish +++ b/tests/checks/scoping.fish @@ -241,6 +241,7 @@ echo 7 $status # no passthrough #CHECK: 7 4 false set -h >/dev/null +# CHECKERR: fish: Missing man page {{.*}} echo 8 $status # no passthrough #CHECK: 8 0 true