nautilus-3.6.3/eel/check-program.c

No issues found

 1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
 2 
 3 /* check-program.c: A simple driver for eel self checks.
 4 
 5    Copyright (C) 2000 Eazel, Inc.
 6 
 7    The Gnome Library is free software; you can redistribute it and/or
 8    modify it under the terms of the GNU Library General Public License as
 9    published by the Free Software Foundation; either version 2 of the
10    License, or (at your option) any later version.
11 
12    The Gnome Library is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    Library General Public License for more details.
16 
17    You should have received a copy of the GNU Library General Public
18    License along with the Gnome Library; see the file COPYING.LIB.  If not,
19    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20    Boston, MA 02111-1307, USA.
21 
22    Authors: Ramiro Estrugo <ramiro@eazel.com>
23 */
24 
25 #include <config.h>
26 
27 #include <eel/eel-debug.h>
28 #include <eel/eel-glib-extensions.h>
29 #include <eel/eel-lib-self-check-functions.h>
30 #include <eel/eel-self-checks.h>
31 #include <gdk/gdk.h>
32 #include <gtk/gtk.h>
33 #include <libxml/parser.h>
34 #include <stdlib.h>
35 
36 int
37 main (int argc, char *argv[])
38 {
39 #if !defined (EEL_OMIT_SELF_CHECK)
40 
41 	eel_make_warnings_and_criticals_stop_in_debugger ();
42 	
43 
44 	LIBXML_TEST_VERSION
45 	gtk_init (&argc, &argv);
46 
47 	/* Run the checks for eel twice. */
48 
49 	eel_run_lib_self_checks ();
50 	eel_exit_if_self_checks_failed ();
51 
52 	eel_run_lib_self_checks ();
53 	eel_exit_if_self_checks_failed ();
54 
55 	eel_debug_shut_down ();
56 
57 #endif /* !EEL_OMIT_SELF_CHECK */
58 	
59 	return EXIT_SUCCESS;
60 }