No issues found
Tool | Failure ID | Location | Function | Message | Data |
---|---|---|---|---|---|
clang-analyzer | no-output-found | test-mail-autoconfig.c | Message(text='Unable to locate XML output from invoke-clang-analyzer') | None |
1 /*
2 * test-mail-autoconfig.c
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) version 3.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with the program; if not, see <http://www.gnu.org/licenses/>
16 *
17 */
18
19 #include <stdlib.h>
20
21 #include "e-mail-autoconfig.h"
22
23 gint
24 main (gint argc,
25 gchar **argv)
26 {
27 EMailAutoconfig *autoconfig;
28 GError *error = NULL;
29
30 g_type_init ();
31
32 if (argc < 2) {
33 g_printerr ("USAGE: %s EMAIL-ADDRESS\n", argv[0]);
34 exit (EXIT_FAILURE);
35 }
36
37 autoconfig = e_mail_autoconfig_new_sync (argv[1], NULL, &error);
38
39 if (error != NULL) {
40 g_warn_if_fail (autoconfig == NULL);
41 g_printerr ("%s\n", error->message);
42 g_error_free (error);
43 exit (EXIT_FAILURE);
44 }
45
46 g_assert (E_IS_MAIL_AUTOCONFIG (autoconfig));
47
48 g_print ("%s\n", e_mail_autoconfig_get_markup_content (autoconfig));
49
50 g_object_unref (autoconfig);
51
52 return EXIT_SUCCESS;
53 }