summaryrefslogtreecommitdiffstats
path: root/debian/opensync/opensync-0.22/tests/check_member.c
diff options
context:
space:
mode:
Diffstat (limited to 'debian/opensync/opensync-0.22/tests/check_member.c')
-rw-r--r--debian/opensync/opensync-0.22/tests/check_member.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/debian/opensync/opensync-0.22/tests/check_member.c b/debian/opensync/opensync-0.22/tests/check_member.c
deleted file mode 100644
index ec5bad0c..00000000
--- a/debian/opensync/opensync-0.22/tests/check_member.c
+++ /dev/null
@@ -1,42 +0,0 @@
-#include <check.h>
-#include <opensync/opensync.h>
-#include <opensync/opensync_internals.h>
-#include <stdlib.h>
-
-#include <glib.h>
-#include <gmodule.h>
-
-START_TEST (test_create)
-{
- OSyncMember *member = NULL;
- member = osync_member_new(NULL);
- fail_unless(member != NULL, "Member == NULL on creation");
-}
-END_TEST
-
-Suite *member_suite(void)
-{
- Suite *s = suite_create("Member");
- TCase *tc_core = tcase_create("Core");
-
- suite_add_tcase (s, tc_core);
- tcase_add_test(tc_core, test_create);
-
- return s;
-}
-
-int main(void)
-{
- int nf;
-
- Suite *s = member_suite();
-
- SRunner *sr;
- sr = srunner_create(s);
-
-// srunner_set_fork_status (sr, CK_NOFORK);
- srunner_run_all(sr, CK_NORMAL);
- nf = srunner_ntests_failed(sr);
- srunner_free(sr);
- return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
-}