summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-10-10 21:06:18 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2016-10-10 21:06:18 +0300
commit045898ffd13dd8938dc3855a6275006175cc4823 (patch)
tree7cd46f7398076e8d58217f83b26ed91936b72fc0
parent219182387a823ae8113a5a14cf29f9263d00171c (diff)
downloadmailutils-045898ffd13dd8938dc3855a6275006175cc4823.tar.gz
mailutils-045898ffd13dd8938dc3855a6275006175cc4823.tar.bz2
Add missing test
-rw-r--r--libmailutils/tests/parseopt24.at27
1 files changed, 27 insertions, 0 deletions
diff --git a/libmailutils/tests/parseopt24.at b/libmailutils/tests/parseopt24.at
new file mode 100644
index 000000000..50053c199
--- /dev/null
+++ b/libmailutils/tests/parseopt24.at
@@ -0,0 +1,27 @@
+# This file is part of GNU Mailutils. -*- Autotest -*-
+# Copyright (C) 2016 Free Software Foundation, Inc.
+#
+# GNU Mailutils is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 3, or (at
+# your option) any later version.
+#
+# GNU Mailutils is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>.
+
+AT_SETUP([MU_PARSEOPT_EXIT_ERROR])
+AT_KEYWORDS([parseopt MU_PARSEOPT_EXIT_ERROR parseopt24])
+AT_CHECK([
+PARSEOPT_DEFAULT
+MU_PARSEOPT_EXIT_ERROR=64 parseopt -X
+],
+[64],
+[],
+[parseopt: unrecognized option '-X'
+])
+AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.