diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-30 14:56:39 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2010-01-30 14:56:39 +0200 |
commit | 8f4111d5a43500775bbb22edcf0d6cc02280566b (patch) | |
tree | 45b69d86e2748779f1f38dc5644994b66ede5e1f /test/lib/completions/uniq.exp | |
parent | c5470fdf742c34b79fb037f906921f2d5fc71082 (diff) | |
download | bash-completion-8f4111d5a43500775bbb22edcf0d6cc02280566b.tar.gz |
(testsuite) Don't fail long option tests if command has no long options.
Many basic commands do not have long options on non-GNU systems, mark such
tests as unsupported (if the command doesn't respond to --help) instead of
failing.
Implemented with the new $failcmd parameter to assert_exec().
Diffstat (limited to 'test/lib/completions/uniq.exp')
-rw-r--r-- | test/lib/completions/uniq.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/completions/uniq.exp b/test/lib/completions/uniq.exp index 6b915596..20dbcfac 100644 --- a/test/lib/completions/uniq.exp +++ b/test/lib/completions/uniq.exp @@ -11,7 +11,9 @@ proc teardown {} { setup -assert_complete_any "uniq --" +if {[assert_exec {uniq --help} "" "" "unsupported"]} { + assert_complete_any "uniq --" +}; # if sync_after_int |