Home
last modified time | relevance | path

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

/third_party/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 …]
/third_party/ltp/testcases/kernel/syscalls/swapon/
Dswapon03.c40 int expected_errno = EPERM; variable
51 if ((TST_RET == -1) && (TST_ERR == expected_errno)) { in verify_swapon()
53 expected_errno); in verify_swapon()
58 expected_errno); in verify_swapon()
77 if ((TST_RET == -1) && (TST_ERR == expected_errno)) { in verify_swapon()
82 expected_errno); in verify_swapon()
89 expected_errno, strerror(TST_ERR)); in verify_swapon()
/third_party/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);
/third_party/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()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/linkat/
Dlinkat02.c66 int expected_errno; member
106 if (desc->expected_errno == EMLINK && max_hardlinks == 0) { in linkat_verify()
129 if (TEST_ERRNO == desc->expected_errno) { in linkat_verify()
134 "%d - %s", desc->expected_errno, in linkat_verify()
135 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()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/dup/
Ddup02.c22 int expected_errno; member
41 if (tc->expected_errno == TST_ERR) { in run()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/symlinkat/
Dsymlinkat01.c76 int expected_errno; member
181 if (TEST_ERRNO == desc->expected_errno) { in mysymlinkat_test()