1
/* NetworkManager -- Forget about your network
3
* Dan Williams <dcbw@redhat.com>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License along
16
* with this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19
* (C) Copyright 2005 Red Hat, Inc.
27
#include "test-common.h"
31
test_result (const char *progname,
39
char * full_msg = NULL;
40
char * result_string = NULL;
44
errmsg = g_malloc0 (257);
45
va_start (args, format);
46
vsnprintf (errmsg, 256, format, args);
50
if (result == TEST_FAIL)
51
result_string = "FAIL";
53
result_string = "SUCCEED";
55
full_msg = g_strdup_printf ("%s: (%s) %s %s\n", progname, test, result_string, errmsg ? errmsg : "");
56
fprintf (stderr, "%s", full_msg);
60
if (result == TEST_FAIL)