1 /********************************************************************\
2 * This program is free software; you can redistribute it and/or *
3 * modify it under the terms of the GNU General Public License as *
4 * published by the Free Software Foundation; either version 2 of *
5 * the License, or (at your option) any later version. *
6 * *
7 * This program is distributed in the hope that it will be useful, *
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
10 * GNU General Public License for more details. *
11 * *
12 * You should have received a copy of the GNU General Public License*
13 * along with this program; if not, contact: *
14 * *
15 * Free Software Foundation Voice: +1-617-542-5942 *
16 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
17 * Boston, MA 02110-1301, USA gnu@gnu.org *
18 * *
19 \********************************************************************/
20
21 #include <config.h>
22 #include <stdio.h>
23 #include <stdlib.h>
24
25 #include "gnc-module.h"
26 #include <unittest-support.h>
27
28 int
main(int argc,char ** argv)29 main(int argc, char ** argv)
30 {
31 GNCModule testmod;
32 g_test_message(" test-agedver.c: asking for an old but supported interface ...");
33
34 gnc_module_system_init();
35
36 testmod = gnc_module_load("gnucash/agedver", 5);
37
38 if (testmod)
39 {
40 printf(" ok\n");
41 exit(0);
42 }
43 else
44 {
45 printf(" failed\n");
46 exit(-1);
47 }
48 }
49