void test_ioctl(void) { test_ioctl_fd(); /* Since we don't actually define any ioctls, this is not meaningful */ ioctl_badcode(); ioctl_badbuf(); }
void test_ioctl(void) { int ntests = 0, lost_points = 0; int result; test_ioctl_fd(&ntests, &lost_points); /* Since we don't actually define any ioctls, this is not meaningful */ ntests++; result = ioctl_badcode(); handle_result(result, &lost_points); ntests++; result = ioctl_badbuf(); handle_result(result, &lost_points); if(!lost_points) success(TEST161_SUCCESS, SECRET, "/testbin/badcall"); }