Home
last modified time | relevance | path

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

123456

/third_party/ltp/testcases/kernel/syscalls/futex/
Dfutex_waitv01.c51 TST_EXP_FAIL(futex_waitv(waitv, 1, 0, &to, CLOCK_MONOTONIC), EINVAL, in test_invalid_flags()
64 TST_EXP_FAIL(futex_waitv(waitv, 1, 0, &to, CLOCK_MONOTONIC), EINVAL, in test_unaligned_address()
77 TST_EXP_FAIL(futex_waitv(waitv, 1, 0, &to, CLOCK_MONOTONIC), EFAULT, in test_null_address()
87 TST_EXP_FAIL(futex_waitv(NULL, 1, 0, &to, CLOCK_MONOTONIC), EINVAL, in test_null_waiters()
98 TST_EXP_FAIL(futex_waitv(waitv, 1, 0, &to, CLOCK_TAI), EINVAL, in test_invalid_clockid()
110 TST_EXP_FAIL(futex_waitv(waitv, 129, 0, &to, CLOCK_MONOTONIC), EINVAL, in test_invalid_nr_futexes()
112 TST_EXP_FAIL(futex_waitv(waitv, 0, 0, &to, CLOCK_MONOTONIC), EINVAL, in test_invalid_nr_futexes()
126 TST_EXP_FAIL(futex_waitv(waitv, 1, 0, &to, CLOCK_MONOTONIC), EAGAIN, in test_mismatch_between_uaddr_and_val()
141 TST_EXP_FAIL(futex_waitv(waitv, 1, 0, &to, CLOCK_REALTIME), ETIMEDOUT, in test_timeout()
/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/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/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/readahead/
Dreadahead01.c37 TST_EXP_FAIL(readahead(-1, 0, getpagesize()), EBADF); in test_bad_fd()
45 TST_EXP_FAIL(readahead(fd, 0, getpagesize()), EBADF); in test_bad_fd()
56 TST_EXP_FAIL(readahead(fd[0], 0, getpagesize()), EINVAL); in test_invalid_fd()
62 TST_EXP_FAIL(readahead(fd[0], 0, getpagesize()), EINVAL); in test_invalid_fd()
/third_party/ltp/testcases/kernel/syscalls/setreuid/
Dsetreuid06.c40 TST_EXP_FAIL(SETREUID(-1, other_uid), EPERM, in run()
42 TST_EXP_FAIL(SETREUID(other_uid, -1), EPERM, in run()
44 TST_EXP_FAIL(SETREUID(other_uid, other_uid), EPERM, in run()
/third_party/ltp/testcases/kernel/syscalls/setpgid/
Dsetpgid03.c47 TST_EXP_FAIL(setpgid(child_pid, getppid()), EPERM); in run()
49 TST_EXP_FAIL(setpgid(0, child_pid), EPERM); in run()
60 TST_EXP_FAIL(setpgid(child_pid, getppid()), EACCES); in run()
/third_party/ltp/testcases/kernel/syscalls/eventfd/
Deventfd02.c38 TST_EXP_FAIL(write(fd, &val, sizeof(val)), EAGAIN); in run()
39 TST_EXP_FAIL(write(fd, &invalid, sizeof(invalid)), EINVAL); in run()
42 TST_EXP_FAIL(write(fd, &val, sizeof(val)), EINVAL); in run()
Deventfd01.c35 TST_EXP_FAIL(read(fd, &val, sizeof(val)), EAGAIN); in run()
36 TST_EXP_FAIL(read(fd, &invalid, sizeof(invalid)), EINVAL); in run()
/third_party/ltp/testcases/kernel/syscalls/setitimer/
Dsetitimer02.c34 TST_EXP_FAIL(sys_setitimer(ITIMER_REAL, value, (void *)-1), EFAULT); in verify_setitimer()
37 TST_EXP_FAIL(sys_setitimer(ITIMER_VIRTUAL, value, (void *)-1), EFAULT); in verify_setitimer()
40 TST_EXP_FAIL(sys_setitimer(-ITIMER_PROF, value, ovalue), EINVAL); in verify_setitimer()
/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()
49 TST_EXP_FAIL(unlink(SNAME_B), ENOENT, "check exist of SNAME_B"); in run()
/third_party/ltp/testcases/kernel/syscalls/mlock/
Dmlock02.c43 TST_EXP_FAIL(mlock(addr, len), ENOMEM, "mlock(%p, %lu)", addr, len); in test_enomem1()
57 TST_EXP_FAIL(mlock(addr, len), ENOMEM, "mlock(%p, %lu)", addr, len); in test_enomem2()
74 TST_EXP_FAIL(mlock(addr, len), EPERM, "mlock(%p, %lu)", addr, len); in test_eperm()
/third_party/ltp/testcases/kernel/syscalls/rename/
Drename08.c30 TST_EXP_FAIL(rename(INVALID_PATH, TEMP_FILE), in run()
32 TST_EXP_FAIL(rename(TEMP_FILE, INVALID_PATH), in run()
Drename03.c53 TST_EXP_FAIL(stat(OLD_FILE_NAME, &old_file_st), in run()
57 TST_EXP_FAIL(stat(OLD_DIR_NAME, &old_dir_st), in run()
Drename01.c62 TST_EXP_FAIL(stat(old_file_name, &old_file_st), in run()
66 TST_EXP_FAIL(stat(old_dir_name, &old_dir_st), in run()
/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/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.c155 TST_EXP_FAIL(quotactl(tc->cmd, "/dev/null", *tc->id, tc->addr), in verify_quotactl()
158 TST_EXP_FAIL(quotactl(tc->cmd, tst_device->dev, *tc->id, in verify_quotactl()
/third_party/ltp/testcases/kernel/syscalls/access/
Daccess03.c37 TST_EXP_FAIL(access(tc->addr, tc->mode), EFAULT, in verify_access()
46 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()
/third_party/ltp/testcases/kernel/containers/mqns/
Dmqns_01.c38 TST_EXP_FAIL(mq_open(MQNAME, O_RDONLY), ENOENT); in run()
46 TST_EXP_FAIL(mq_open(MQNAME, O_RDONLY), ENOENT); in run()
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/
Depoll_wait06.c80 TST_EXP_FAIL(write(fds[1], buff, write_size), EAGAIN, "write() failed"); in run()
96 TST_EXP_FAIL(read(fds[0], buff, read_size), EAGAIN, "read() failed"); in run()
/third_party/ltp/testcases/kernel/syscalls/mount/
Dmount03.c52 TST_EXP_FAIL(otfd = open(file, O_CREAT | O_RDWR, 0700), EROFS); in test_rdonly()
59 TST_EXP_FAIL(otfd = open(file, O_RDWR, 0700), EACCES); in test_nodev()
67 TST_EXP_FAIL(execlp(file, basename(file), NULL), EACCES); in test_noexec()
Dmount03_suid_child.c22 TST_EXP_FAIL(setreuid(getuid(), 0), EPERM); in main()
/third_party/ltp/testcases/kernel/syscalls/close/
Dclose02.c20 TST_EXP_FAIL(close(-1), EBADF); in run()

123456