mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-28 19:58:56 +03:00
41 lines
753 B
C
41 lines
753 B
C
#include "support.h"
|
|
|
|
#include "vio/csync_vio_file_stat.h"
|
|
|
|
START_TEST (check_csync_vio_file_stat_new)
|
|
{
|
|
csync_vio_file_stat_t *tstat = NULL;
|
|
|
|
tstat = csync_vio_file_stat_new();
|
|
fail_if(tstat == NULL, NULL);
|
|
|
|
csync_vio_file_stat_destroy(tstat);
|
|
}
|
|
END_TEST
|
|
|
|
|
|
static Suite *csync_vio_suite(void) {
|
|
Suite *s = suite_create("csync_vio_file_stat");
|
|
|
|
create_case(s, "check_csync_vio_file_stat_new", check_csync_vio_file_stat_new);
|
|
|
|
return s;
|
|
}
|
|
|
|
int main(void) {
|
|
int nf;
|
|
|
|
Suite *s = csync_vio_suite();
|
|
|
|
SRunner *sr;
|
|
sr = srunner_create(s);
|
|
#if 0
|
|
srunner_set_fork_status(sr, CK_NOFORK);
|
|
#endif
|
|
srunner_run_all(sr, CK_VERBOSE);
|
|
nf = srunner_ntests_failed(sr);
|
|
srunner_free(sr);
|
|
|
|
return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
|
|
}
|
|
|