int main(int argc, char *argv[]) { #ifdef HAVE_LIBCAP if (argc < 2) usage(argv[0]); int ret = 0; switch (atoi(argv[1])) { case 0: ret = perms_test(); break; case 1: ret = caps_actually_set_test(); if (ret) tst_resm(TFAIL, "Some tests failed\n"); else tst_resm(TPASS, "All tests passed\n"); break; default: usage(argv[0]); } #else tst_resm(TCONF, "System doesn't have POSIX capabilities support."); #endif tst_exit(); }
int main(int argc, char **argv, char **envp) { nx_test(); perms_test(); unmap_test(); return 0; }