Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/adjtimex/
Dadjtimex02.c27 int expected_errno = 0; in verify_adjtimex() local
48 expected_errno = EFAULT; in verify_adjtimex()
52 expected_errno = EINVAL; in verify_adjtimex()
56 expected_errno = EINVAL; in verify_adjtimex()
62 expected_errno = EPERM; in verify_adjtimex()
66 expected_errno = EINVAL; in verify_adjtimex()
70 expected_errno = EINVAL; in verify_adjtimex()
77 if ((TST_RET == -1) && (TST_ERR == expected_errno)) { in verify_adjtimex()
79 "adjtimex() error %u ", expected_errno); in verify_adjtimex()
/external/ltp/testcases/kernel/syscalls/epoll/
Depoll-ltp.c475 int expected_errno = 0; in test_epoll_ctl() local
513 expected_errno = in test_epoll_ctl()
517 expected_errno = in test_epoll_ctl()
528 expected_errno = EINVAL; in test_epoll_ctl()
533 expected_errno = EPERM; in test_epoll_ctl()
537 expected_errno = EINVAL; in test_epoll_ctl()
544 expected_errno = in test_epoll_ctl()
553 expected_errno in test_epoll_ctl()
583 expected_errno) in test_epoll_ctl()
594 expected_errno) in test_epoll_ctl()
[all …]
/external/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages_common.c49 int check_errno(long expected_errno) in check_errno() argument
51 if (TEST_ERRNO == expected_errno) { in check_errno()
59 expected_errno, strerror(expected_errno)); in check_errno()
Dmigrate_pages_common.h32 int check_errno(long expected_errno);
/external/ltp/testcases/kernel/syscalls/swapon/
Dswapon03.c66 int expected_errno = EPERM; variable
87 if ((TEST_RETURN == -1) && (TEST_ERRNO == expected_errno)) { in main()
89 expected_errno); in main()
94 expected_errno); in main()
117 && (TEST_ERRNO == expected_errno)) { in main()
122 expected_errno); in main()
129 expected_errno, in main()
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dobj_name.c9 int expected_errno; in test_obj_name() member
42 (!tests[i].success && errno != tests[i].expected_errno), in test_obj_name()
45 fd, tests[i].success, errno, tests[i].expected_errno); in test_obj_name()
63 (!tests[i].success && errno != tests[i].expected_errno), in test_obj_name()
66 fd, tests[i].success, errno, tests[i].expected_errno); in test_obj_name()
/external/ltp/testcases/kernel/syscalls/readahead/
Dreadahead01.c36 static void check_errno(long expected_errno) in check_errno() argument
38 if (TST_ERR == expected_errno) { in check_errno()
48 expected_errno, strerror(expected_errno)); in check_errno()
/external/ltp/testcases/kernel/syscalls/munmap/
Dmunmap03.c94 static void check_and_print(int expected_errno) in check_and_print() argument
97 if (TEST_ERRNO == expected_errno) { in check_and_print()
102 expected_errno, strerror(expected_errno)); in check_and_print()
/external/ltp/testcases/kernel/syscalls/linkat/
Dlinkat02.c67 int expected_errno; member
107 if (desc->expected_errno == EMLINK && max_hardlinks == 0) { in linkat_verify()
130 if (TEST_ERRNO == desc->expected_errno) { in linkat_verify()
135 "%d - %s", desc->expected_errno, in linkat_verify()
136 strerror(desc->expected_errno)); in linkat_verify()
Dlinkat01.c98 int expected_errno; member
247 if (TEST_ERRNO == desc->expected_errno) { in mylinkat_test()
283 desc->expected_errno, in mylinkat_test()
284 strerror(desc->expected_errno)); in mylinkat_test()
/external/ltp/testcases/kernel/syscalls/rename/
Drename11.c126 static void check_and_print(int expected_errno) in check_and_print() argument
129 if (TEST_ERRNO == expected_errno) { in check_and_print()
134 expected_errno, strerror(expected_errno)); in check_and_print()
/external/linux-kselftest/tools/testing/selftests/kvm/x86_64/
Dvmx_set_nested_state_test.c37 int expected_errno) in test_nested_state_expect_errno() argument
42 TEST_ASSERT(rv == -1 && errno == expected_errno, in test_nested_state_expect_errno()
44 strerror(expected_errno), expected_errno, rv, strerror(errno), in test_nested_state_expect_errno()
/external/ltp/testcases/kernel/syscalls/futimesat/
Dfutimesat01.c57 static const int expected_errno[] = { 0, 0, ENOTDIR, EBADF, 0 }; variable
84 if (TEST_ERRNO == expected_errno[i]) { in main()
/external/ltp/testcases/kernel/syscalls/cma/
Dprocess_vm01.c157 static int cma_check_errno(long expected_errno) in cma_check_errno() argument
159 if (TEST_ERRNO == expected_errno) in cma_check_errno()
167 expected_errno, strerror(expected_errno)); in cma_check_errno()
/external/ltp/testcases/kernel/syscalls/unlinkat/
Dunlinkat01.c63 static const int expected_errno[] = { 0, 0, ENOTDIR, EBADF, EINVAL, 0, 0 }; variable
89 if (TEST_ERRNO == expected_errno[i]) { in main()
/external/ltp/testcases/kernel/syscalls/faccessat/
Dfaccessat01.c63 static int expected_errno[TEST_CASES] = { 0, 0, ENOTDIR, EBADF, 0, 0 }; variable
93 if (TEST_ERRNO == expected_errno[i]) { in main()
/external/ltp/testcases/kernel/syscalls/fchmodat/
Dfchmodat01.c63 int expected_errno[TEST_CASES] = { 0, 0, ENOTDIR, EBADF, 0, 0 }; variable
92 if (TEST_ERRNO == expected_errno[i]) { in main()
/external/ltp/testcases/kernel/syscalls/fstatat/
Dfstatat01.c58 static const int expected_errno[] = { 0, 0, ENOTDIR, EBADF, EINVAL, 0 }; variable
102 if (TEST_ERRNO == expected_errno[i]) { in main()
/external/linux-kselftest/tools/testing/selftests/exec/
Dexecveat.c42 int expected_errno, const char *errno_str) in _check_execveat_fail() argument
55 if (errno != expected_errno) { in _check_execveat_fail()
57 expected_errno, strerror(expected_errno), in _check_execveat_fail()
/external/igt-gpu-tools/tests/i915/
Dgem_fenced_exec_thrash.c93 static void run_test(int fd, int num_fences, int expected_errno, in run_test() argument
139 -expected_errno); in run_test()
Dgem_exec_parse.c280 int expected_errno = test->whitelisted ? 0 : bad_lri_errno; in test_lri() local
285 expected_errno, expect); in test_lri()
296 expected_errno); in test_lri()
Dgem_exec_params.c246 #define RUN_FAIL(expected_errno) do { \ argument
247 igt_assert_eq(__gem_execbuf(fd, &execbuf), -expected_errno); \
/external/ltp/testcases/kernel/syscalls/symlinkat/
Dsymlinkat01.c76 int expected_errno; member
181 if (TEST_ERRNO == desc->expected_errno) { in mysymlinkat_test()
/external/jemalloc_new/test/unit/
Dmalloc_io.c18 int expected_errno; in TEST_BEGIN() member
92 assert_d_eq(err, test->expected_errno, in TEST_BEGIN()
/external/python/cpython2/Lib/test/
Dtest_posix.py548 expected_errno = errno.ENAMETOOLONG
558 expected_errno = errno.ERANGE
559 self.assertEqual(e.errno, expected_errno)