/external/ltp/testcases/kernel/syscalls/futex/ |
D | futex_waitv01.c | 51 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/ |
D | close_range02.c | 54 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/ |
D | io_setup02.c | 33 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/ |
D | test_macros02.c | 31 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/ |
D | readahead01.c | 37 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/ |
D | setreuid06.c | 40 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/ |
D | setitimer02.c | 34 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/ |
D | rename08.c | 30 TST_EXP_FAIL(rename(INVALID_PATH, TEMP_FILE), in run() 32 TST_EXP_FAIL(rename(TEMP_FILE, INVALID_PATH), in run()
|
D | rename03.c | 53 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()
|
D | rename01.c | 62 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/ |
D | setpgid03.c | 45 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/ |
D | reboot02.c | 40 TST_EXP_FAIL(reboot(tc->cmd), in run() 46 TST_EXP_FAIL(reboot(tc->cmd), in run()
|
/external/ltp/testcases/kernel/syscalls/access/ |
D | access03.c | 34 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/ |
D | bind03.c | 31 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/ |
D | sysfs05.c | 35 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()
|
D | sysfs04.c | 22 TST_EXP_FAIL(tst_syscall(__NR_sysfs, INVALID_OPTION), in verify_sysfs04()
|
/external/ltp/testcases/kernel/syscalls/quotactl/ |
D | quotactl09.c | 115 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()
|
D | quotactl06.c | 155 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/ |
D | mount03.c | 52 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()
|
D | mount03_suid_child.c | 22 TST_EXP_FAIL(setreuid(getuid(), 0), EPERM); in main()
|
/external/ltp/testcases/kernel/syscalls/close/ |
D | close02.c | 20 TST_EXP_FAIL(close(-1), EBADF); in run()
|
/external/ltp/testcases/kernel/syscalls/wait/ |
D | wait01.c | 19 TST_EXP_FAIL(wait(NULL), ECHILD); in verify_wait()
|
/external/ltp/testcases/kernel/syscalls/fchdir/ |
D | fchdir02.c | 17 TST_EXP_FAIL(fchdir(bad_fd), EBADF); in verify_fchdir()
|
/external/ltp/testcases/kernel/syscalls/sched_get_priority_max/ |
D | sched_get_priority_max02.c | 23 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/ |
D | sched_get_priority_min02.c | 23 TST_EXP_FAIL(tst_syscall(__NR_sched_get_priority_min, SCHED_INVALID), EINVAL); in verif_sched_get_priority_min02()
|