nextcloud-desktop/tests/vio_tests/check_vio_file_stat.c
2008-05-07 11:09:56 +02:00

47 lines
918 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 *make_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(int argc, char **argv) {
Suite *s = NULL;
SRunner *sr = NULL;
struct argument_s arguments;
int nf;
ZERO_STRUCT(arguments);
cmdline_parse(argc, argv, &arguments);
s = make_csync_vio_suite();
sr = srunner_create(s);
if (arguments.nofork) {
srunner_set_fork_status(sr, CK_NOFORK);
}
srunner_run_all(sr, CK_VERBOSE);
nf = srunner_ntests_failed(sr);
srunner_free(sr);
return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
}