diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-05-05 21:00:30 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-05-05 21:00:30 +0900 |
| commit | 24e9ee48f345ffccf078cfb6a905c9ce183b9fad (patch) | |
| tree | 4a7bbf2b5eea460ab9daa0df7367033f8c117d4d /debian/opensync/opensync-0.22/tests/check_user.c | |
| parent | fcd3bd2cb3714f26d5b546e3b5d8df2bd3646c05 (diff) | |
| download | extra-dependencies-24e9ee48f345ffccf078cfb6a905c9ce183b9fad.tar.gz extra-dependencies-24e9ee48f345ffccf078cfb6a905c9ce183b9fad.zip | |
DEB: drop deprecated opensync code.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'debian/opensync/opensync-0.22/tests/check_user.c')
| -rw-r--r-- | debian/opensync/opensync-0.22/tests/check_user.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/debian/opensync/opensync-0.22/tests/check_user.c b/debian/opensync/opensync-0.22/tests/check_user.c deleted file mode 100644 index b83d39b5..00000000 --- a/debian/opensync/opensync-0.22/tests/check_user.c +++ /dev/null @@ -1,48 +0,0 @@ -#include <check.h> -#include <opensync/opensync.h> -#include <opensync/opensync_internals.h> - -START_TEST (user_create) -{ - OSyncUserInfo *osuser = osync_user_new(NULL); - fail_unless(osuser != NULL, "osuser == NULL on creation"); - fail_unless(osync_user_get_confdir(osuser) != NULL, "confdir == NULL on creation"); -} -END_TEST - -START_TEST (user_confdir) -{ - OSyncUserInfo *osuser = osync_user_new(NULL); - fail_unless(osync_user_get_confdir(osuser) != NULL, "configdir == NULL on creation"); - osync_user_set_confdir(osuser, "test"); - if (g_ascii_strcasecmp (osync_user_get_confdir(osuser), "test") != 0) - fail("configpath == \"test\""); -} -END_TEST - -Suite *env_suite(void) -{ - Suite *s = suite_create("User"); - TCase *tc_core = tcase_create("Core"); - - suite_add_tcase (s, tc_core); - tcase_add_test(tc_core, user_create); - tcase_add_test(tc_core, user_confdir); - return s; -} - -int main(void) -{ - int nf; - - Suite *s = env_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; -} |
