Home
last modified time | relevance | path

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

12345

/external/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()
/external/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()
/external/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()
/external/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()
/external/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()
/external/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()
/external/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()
/external/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()
/external/ltp/testcases/kernel/syscalls/setpgid/
Dsetpgid03.c45 TST_EXP_FAIL(setpgid(child_pid, getppid()), EPERM); in run()
56 TST_EXP_FAIL(setpgid(child_pid, getppid()), EACCES); in run()
/external/ltp/testcases/kernel/syscalls/reboot/
Dreboot02.c40 TST_EXP_FAIL(reboot(tc->cmd), in run()
46 TST_EXP_FAIL(reboot(tc->cmd), in run()
/external/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()
/external/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()
/external/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()
/external/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()
/external/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()
/external/ltp/testcases/kernel/syscalls/close/
Dclose02.c20 TST_EXP_FAIL(close(-1), EBADF); in run()
/external/ltp/testcases/kernel/syscalls/wait/
Dwait01.c19 TST_EXP_FAIL(wait(NULL), ECHILD); in verify_wait()
/external/ltp/testcases/kernel/syscalls/fchdir/
Dfchdir02.c17 TST_EXP_FAIL(fchdir(bad_fd), EBADF); in verify_fchdir()
/external/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()
/external/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()

12345