From 04efb47225767928e7bc69036d489572d6e255d2 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Fri, 21 Dec 2018 19:45:48 +1100 Subject: PR 33817 * dejagnu: Improve command parsing to fix bug. Previously, the documented equivalence between "multi word command" and "multi-word-command" did not hold if no arguments were given. * testsuite/launcher.all/command.exp: Add tests. Signed-off-by: Ben Elliston --- testsuite/launcher.all/command.exp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'testsuite') diff --git a/testsuite/launcher.all/command.exp b/testsuite/launcher.all/command.exp index eb7b219..9e21237 100644 --- a/testsuite/launcher.all/command.exp +++ b/testsuite/launcher.all/command.exp @@ -70,6 +70,15 @@ set tests { "Found subcommand baz-quux with variants: gawk\n" "Selected variant gawk" } + { "#" "bug #33817: ensure that the failure is 'no variant'" + " rather than 'could not resolve command'" } + { "dejagnu baz-quux is resolved but fails without GNU Awk (bug #33817)" + {baz-quux} {GAWK=bogus} 2 + "ERROR: no variant of baz-quux was selected" } + { "dejagnu baz quux is resolved but fails without GNU Awk (bug #33817)" + {baz quux} {GAWK=bogus} 2 + "ERROR: no variant of baz-quux was selected" } + { "#" invalid direct calls } { "dejagnu -v bar fails" {-v bar} {} 2 -- cgit v1.1