1 #include <stdlib.h> 2 #include <stdio.h> 3 #include <check.h> 4 5 #include <gtk/gtk.h> 6 #include "geany.h" 7 8 9 Suite * my_suite(void)10my_suite(void) 11 { 12 Suite *s = suite_create("GeanyDoc"); 13 return s; 14 } 15 16 int main(void)17main(void) 18 { 19 int nf; 20 Suite *s = my_suite(); 21 SRunner *sr = srunner_create(s); 22 srunner_run_all(sr, CK_NORMAL); 23 nf = srunner_ntests_failed(sr); 24 srunner_free(sr); 25 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE; 26 } 27