Home
last modified time | relevance | path

Searched refs:TST_EXP_FAIL (Results 1 – 25 of 85) sorted by relevance

1234

/third_party/ltp/testcases/kernel/syscalls/io_setup/
Dio_setup02.c33 TST_EXP_FAIL(tst_syscall(__NR_io_setup, 1, NULL), EFAULT, in run()
37 TST_EXP_FAIL(tst_syscall(__NR_io_setup, 1, &ctx), EINVAL, in run()
41 TST_EXP_FAIL(tst_syscall(__NR_io_setup, -1, &ctx), EINVAL, in run()
47 TST_EXP_FAIL(tst_syscall(__NR_io_setup, aio_max + 1, &ctx), EAGAIN, in run()
/third_party/ltp/testcases/kernel/syscalls/close_range/
Dclose_range02.c54 TST_EXP_FAIL(fcntl(fd, F_GETFD), EBADF, in run()
56 TST_EXP_FAIL(fcntl(100, F_GETFD), EBADF); in run()
59 TST_EXP_FAIL(close_range(4, 3, 0), EINVAL); in run()
62 TST_EXP_FAIL(close_range(3, ~0U, ~0U), EINVAL); in run()
95 TST_EXP_FAIL(fcntl(fd, F_GETFD), EBADF, in run()
/third_party/ltp/lib/newlib_tests/
Dtest_macros02.c31 TST_EXP_FAIL(fail_fn(), EINVAL, "fail_fn()"); in do_test()
33 TST_EXP_FAIL(fail_fn(), ENOTTY, "fail_fn()"); in do_test()
35 TST_EXP_FAIL(pass_fn(), ENOTTY, "pass_fn()"); in do_test()
37 TST_EXP_FAIL(inval_ret_fn(), ENOTTY, "inval_ret_fn()"); in do_test()
/third_party/ltp/testcases/kernel/syscalls/reboot/
Dreboot02.c40 TST_EXP_FAIL(reboot(tc->cmd), in run()
46 TST_EXP_FAIL(reboot(tc->cmd), in run()
/third_party/ltp/testcases/kernel/syscalls/access/
Daccess03.c34 TST_EXP_FAIL(access(tc->addr, tc->mode), EFAULT, in verify_access()
43 TST_EXP_FAIL(access(tc->addr, tc->mode), EFAULT, in verify_access()
/third_party/ltp/testcases/kernel/syscalls/sysfs/
Dsysfs05.c35 TST_EXP_FAIL(tst_syscall(__NR_sysfs, tc->option, tc->fsname), in verify_sysfs05()
38 TST_EXP_FAIL(tst_syscall(__NR_sysfs, tc->option, tc->fsindex, buf), in verify_sysfs05()
Dsysfs04.c22 TST_EXP_FAIL(tst_syscall(__NR_sysfs, INVALID_OPTION), in verify_sysfs04()
/third_party/ltp/testcases/kernel/syscalls/bind/
Dbind03.c31 TST_EXP_FAIL(bind(sock1, (struct sockaddr *)&sun2, sizeof(sun2)), in run()
38 TST_EXP_FAIL(bind(sock2, (struct sockaddr *)&sun1, sizeof(sun1)), in run()
/third_party/ltp/testcases/kernel/syscalls/quotactl/
Dquotactl09.c115 TST_EXP_FAIL(syscall(__NR_quotactl_fd, socket_fd, tc->cmd, *tc->id, in verify_quotactl()
126 TST_EXP_FAIL(do_quotactl(fd, tc->cmd, "/dev/null", *tc->id, tc->addr), in verify_quotactl()
129 TST_EXP_FAIL(do_quotactl(fd, tc->cmd, tst_device->dev, *tc->id, tc->addr), in verify_quotactl()
Dquotactl06.c151 TST_EXP_FAIL(quotactl(tc->cmd, "/dev/null", *tc->id, tc->addr), in verify_quotactl()
154 TST_EXP_FAIL(quotactl(tc->cmd, tst_device->dev, *tc->id, tc->addr), in verify_quotactl()
/third_party/ltp/testcases/kernel/syscalls/close/
Dclose02.c20 TST_EXP_FAIL(close(-1), EBADF); in run()
/third_party/ltp/testcases/kernel/syscalls/wait/
Dwait01.c19 TST_EXP_FAIL(wait(NULL), ECHILD); in verify_wait()
/third_party/ltp/testcases/kernel/syscalls/fchdir/
Dfchdir02.c17 TST_EXP_FAIL(fchdir(bad_fd), EBADF); in verify_fchdir()
/third_party/ltp/testcases/kernel/syscalls/sched_get_priority_max/
Dsched_get_priority_max02.c23 TST_EXP_FAIL(tst_syscall(__NR_sched_get_priority_max, SCHED_INVALID), EINVAL); in verif_sched_get_priority_max02()
/third_party/ltp/testcases/kernel/syscalls/sched_get_priority_min/
Dsched_get_priority_min02.c23 TST_EXP_FAIL(tst_syscall(__NR_sched_get_priority_min, SCHED_INVALID), EINVAL); in verif_sched_get_priority_min02()
/third_party/ltp/testcases/kernel/syscalls/uname/
Duname02.c19 TST_EXP_FAIL(uname(bad_addr), EFAULT); in verify_uname()
/third_party/ltp/testcases/kernel/syscalls/getitimer/
Dgetitimer02.c25 TST_EXP_FAIL(sys_getitimer(ITIMER_REAL, (struct itimerval *)-1), EFAULT); in verify_getitimer()
/third_party/ltp/testcases/kernel/syscalls/io_destroy/
Dio_destroy02.c28 TST_EXP_FAIL(tst_syscall(__NR_io_destroy, ctx), EINVAL, in run()
/third_party/ltp/testcases/kernel/syscalls/io_cancel/
Dio_cancel01.c26 TST_EXP_FAIL(tst_syscall(__NR_io_cancel, ctx, NULL, NULL), EFAULT); in run()
/third_party/ltp/testcases/kernel/syscalls/chroot/
Dchroot04.c27 TST_EXP_FAIL(chroot(TEST_TMPDIR), EACCES, "no search permission chroot()"); in verify_chroot()
Dchroot01.c23 TST_EXP_FAIL(chroot(path), EPERM, "unprivileged chroot()"); in verify_chroot()
/third_party/ltp/testcases/kernel/syscalls/epoll_create1/
Depoll_create1_02.c31 TST_EXP_FAIL(tst_syscall(__NR_epoll_create1, tc[n].flags), in run()
/third_party/ltp/testcases/kernel/syscalls/epoll_create/
Depoll_create02.c32 TST_EXP_FAIL(do_epoll_create(tc[n].size), in run()
/third_party/ltp/testcases/kernel/syscalls/sched_getscheduler/
Dsched_getscheduler02.c32 TST_EXP_FAIL(tv->sched_getscheduler(unused_pid), ESRCH, in run()
/third_party/ltp/testcases/kernel/syscalls/setgid/
Dsetgid02.c30 TST_EXP_FAIL(SETGID(rootpwent->pw_gid), EPERM); in run()

1234