5 #include <unittest-support.h>
7 #include "gnc-module.h"
10 guile_main(
void *closure,
int argc,
char ** argv)
13 gchar *msg1 =
"Module '../../../src/gnc-module/test/misc-mods/.libs/libgncmod_futuremodsys.so' requires newer module system\n";
14 gchar *msg2 =
"Could not locate module gnucash/incompatdep interface v.0";
15 gchar *logdomain =
"gnc.module";
16 guint loglevel = G_LOG_LEVEL_WARNING;
19 test_add_error (&check1);
20 test_add_error (&check2);
21 g_log_set_handler (logdomain, loglevel,
22 (GLogFunc)test_list_handler, NULL);
24 g_test_message(
" test-incompatdep.c: loading a module with bad deps ...\n");
26 gnc_module_system_init();
28 foo = gnc_module_load(
"gnucash/incompatdep", 0);
37 printf(
" oops! loaded incompatible module\n");
43 main(
int argc,
char ** argv)
45 scm_boot_guile(argc, argv, guile_main, NULL);