void test_open(void) { test_open_path(); open_badflags(); open_empty(); }
int main(int argc, char **argv) { test_devnull(); test_multiple_descriptors(); test_readwrite(); test_copy(); test_bad_descrip(); test_open_path(); return 0; }
void test_open(void) { int ntests = 0, lost_points = 0; int result; test_open_path(&ntests, &lost_points); ntests++; result = open_badflags(); handle_result(result, &lost_points); ntests++; result = open_empty(); handle_result(result, &lost_points); if(!lost_points) success(TEST161_SUCCESS, SECRET, "/testbin/badcall"); }