/* SPDX-License-Identifier: Zlib */ #include #include "zathura.h" #include "tests.h" START_TEST(test_create) { zathura_t* zathura = zathura_create(); zathura->global.sandbox = ZATHURA_SANDBOX_STRICT; fail_unless(zathura != NULL, "Could not create strictly sandboxed session", NULL); fail_unless(zathura_init(zathura) == true, "Could not initialize strictly sandboxed session", NULL); zathura_free(zathura); } END_TEST static Suite* suite_sandbox(void) { TCase* tcase = NULL; Suite* suite = suite_create("Sandbox"); /* basic */ tcase = tcase_create("basic"); tcase_add_checked_fixture(tcase, setup, NULL); tcase_add_test(tcase, test_create); suite_add_tcase(suite, tcase); return suite; } int main() { return run_suite(suite_sandbox()); }