1 : /*
2 : * This file is part of MIN Test Framework. Copyright © 2008 Nokia Corporation
3 : * and/or its subsidiary(-ies).
4 : * Contact: Sampo Saaristo
5 : * Contact e-mail: DG.MIN-Support@nokia.com
6 : *
7 : * This program is free software: you can redistribute it and/or modify it
8 : * under the terms of the GNU General Public License as published by the Free
9 : * Software Foundation, version 2 of the License.
10 : *
11 : * This program is distributed in the hope that it will be useful, but WITHOUT
12 : * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 : * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 : * more details. You should have received a copy of the GNU General Public
15 : * License along with this program. If not, see
16 : * <http://www.gnu.org/licenses/>.
17 : */
18 :
19 :
20 : /**
21 : * @file check_libloader.c
22 : * @version 0.1
23 : * @brief This file contains main() lib loader util tests
24 : */
25 :
26 : /* ------------------------------------------------------------------------- */
27 : /* INCLUDE FILES */
28 : #include <stdlib.h>
29 : #include <check.h>
30 :
31 : /* ------------------------------------------------------------------------- */
32 : /* EXTERNAL DATA STRUCTURES */
33 : /* None */
34 :
35 : /* ------------------------------------------------------------------------- */
36 : /* EXTERNAL GLOBAL VARIABLES */
37 : /* None */
38 :
39 : /* ------------------------------------------------------------------------- */
40 : /* EXTERNAL FUNCTION PROTOTYPES */
41 : extern Suite *tllib_suite();
42 :
43 : /* =============================== TEST MAIN =============================== */
44 :
45 : int main (void)
46 1 : {
47 : int number_failed;
48 1 : Suite *s = tllib_suite ();
49 1 : SRunner *sr = srunner_create (s);
50 1 : srunner_set_fork_status (sr,CK_NOFORK);
51 1 : srunner_run_all (sr, CK_NORMAL);
52 1 : number_failed = srunner_ntests_failed (sr);
53 1 : srunner_free (sr);
54 1 : return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
55 : }
56 :
57 : /* ========================================================================= */
58 : /* End of file */
|