~ptman/hipl/reload

« back to all changes in this revision

Viewing changes to test/hipd/lsidb.c

  • Committer: Paul Tötterman
  • Date: 2013-08-07 10:03:19 UTC
  • mfrom: (6419.1.6 vanilla)
  • Revision ID: paul.totterman@iki.fi-20130807100319-eazy6pik2gr28wra
Merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
}
66
66
END_TEST
67
67
 
68
 
#ifdef HAVE_TCASE_ADD_EXIT_TEST
69
68
START_TEST(test_lsidb_allocate_lsi_null)
70
69
{
71
70
    lsidb_allocate_lsi(NULL);
72
71
}
73
72
END_TEST
74
 
#endif /* HAVE_TCASE_ADD_EXIT_TEST */
75
73
 
76
74
Suite *hipd_lsidb(void)
77
75
{
81
79
    tcase_add_test(tc_core, test_lsidb_allocate_lsi_valid);
82
80
    tcase_add_test(tc_core, test_lsidb_free_lsi_valid);
83
81
    tcase_add_test(tc_core, test_lsidb_free_lsi_invalid);
84
 
    // the tcase_add_exit_test macro is only available in check 0.9.8 or later but
85
 
    // scratchbox uses an older version of checkc so we try to avoid this macro
86
 
#ifdef HAVE_TCASE_ADD_EXIT_TEST
87
82
    tcase_add_exit_test(tc_core, test_lsidb_allocate_lsi_null, 1);
88
 
#endif
89
83
    suite_add_tcase(s, tc_core);
90
84
 
91
85
    return s;