tests/test-objects.c
changeset 131 f67d47083e3a
equal deleted inserted replaced
130:b88a70fb8525 131:f67d47083e3a
       
     1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
       
     2 /*
       
     3  * Copyright (C) 2006 Imendio AB
       
     4  *
       
     5  * This program is free software; you can redistribute it and/or
       
     6  * modify it under the terms of the GNU Lesser General Public License as
       
     7  * published by the Free Software Foundation; either version 2 of the
       
     8  * License, or (at your option) any later version.
       
     9  *
       
    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 GNU
       
    13  * Lesser General Public License for more details.
       
    14  *
       
    15  * You should have received a copy of the GNU Lesser General Public
       
    16  * License along with this program; if not, write to the
       
    17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    18  * Boston, MA 02111-1307, USA.
       
    19  */
       
    20 
       
    21 #include <stdlib.h>
       
    22 
       
    23 #include "test-objects.h"
       
    24 
       
    25 Suite *
       
    26 create_lm_objects_suite ()
       
    27 {
       
    28 	Suite *suite;
       
    29 
       
    30 	suite = suite_create ("LmObjects");
       
    31 
       
    32 	return suite;
       
    33 }
       
    34 
       
    35 int 
       
    36 main (int argc, char **argv)
       
    37 {
       
    38 	SRunner *srunner;
       
    39 	int      nf;
       
    40 
       
    41 	srunner = srunner_create (create_lm_objects_suite ());
       
    42 
       
    43 	srunner_run_all (srunner, CK_NORMAL);
       
    44 	nf = srunner_ntests_failed (srunner);
       
    45 
       
    46 	srunner_free (srunner);
       
    47 
       
    48 	return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
       
    49 }
       
    50