Add missing test
Showing
1 changed file
with
27 additions
and
0 deletions
libmailutils/tests/parseopt24.at
0 → 100644
1 | # This file is part of GNU Mailutils. -*- Autotest -*- | ||
2 | # Copyright (C) 2016 Free Software Foundation, Inc. | ||
3 | # | ||
4 | # GNU Mailutils is free software; you can redistribute it and/or | ||
5 | # modify it under the terms of the GNU General Public License as | ||
6 | # published by the Free Software Foundation; either version 3, or (at | ||
7 | # your option) any later version. | ||
8 | # | ||
9 | # GNU Mailutils is distributed in the hope that it will be useful, but | ||
10 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | # General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. | ||
16 | |||
17 | AT_SETUP([MU_PARSEOPT_EXIT_ERROR]) | ||
18 | AT_KEYWORDS([parseopt MU_PARSEOPT_EXIT_ERROR parseopt24]) | ||
19 | AT_CHECK([ | ||
20 | PARSEOPT_DEFAULT | ||
21 | MU_PARSEOPT_EXIT_ERROR=64 parseopt -X | ||
22 | ], | ||
23 | [64], | ||
24 | [], | ||
25 | [parseopt: unrecognized option '-X' | ||
26 | ]) | ||
27 | AT_CLEANUP |
-
Please register or sign in to post a comment