Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/net/
H A Dbind_wildcard.c56 int expected_errno[NR_SOCKETS]; in FIXTURE_VARIANT() local
65 .expected_errno = {0, EADDRINUSE, in FIXTURE_VARIANT_ADD()
79 .expected_errno = {0, EADDRINUSE, in FIXTURE_VARIANT_ADD()
94 .expected_errno = {0, EADDRINUSE, in FIXTURE_VARIANT_ADD()
109 .expected_errno = {0, 0, in FIXTURE_VARIANT_ADD()
123 .expected_errno = {0, 0, in FIXTURE_VARIANT_ADD()
137 .expected_errno = {0, EADDRINUSE, in FIXTURE_VARIANT_ADD()
151 .expected_errno = {0, EADDRINUSE, in FIXTURE_VARIANT_ADD()
165 .expected_errno = {0, EADDRINUSE, in FIXTURE_VARIANT_ADD()
180 .expected_errno = {0, 0, in FIXTURE_VARIANT_ADD()
[all …]
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_dev.c14 int dev_minor, int expected_ret, int expected_errno) in test_mknod() argument
22 ASSERT_EQ(errno, expected_errno, "mknod errno"); in test_mknod()
28 int expected_ret, int expected_errno) in test_read() argument
37 ASSERT_EQ(errno, expected_errno, "open errno for read"); in test_read()
53 int expected_ret, int expected_errno) in test_write() argument
62 ASSERT_EQ(errno, expected_errno, "open errno for write"); in test_write()
H A 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()
H A Dbind_perm.c20 void try_bind(int family, int port, int expected_errno) in try_bind() argument
43 ASSERT_EQ(errno, expected_errno, "bind"); in try_bind()
/linux/tools/testing/selftests/net/af_unix/
H A Dmsg_oob.c215 int i, ret[2], recv_errno[2], expected_errno = 0; in __recvpair() local
229 expected_errno = -expected_len; in __recvpair()
233 if (ret[0] != expected_len || recv_errno[0] != expected_errno) { in __recvpair()
235 TH_LOG("Expected:%s", expected_errno ? strerror(expected_errno) : expected_buf); in __recvpair()
238 ASSERT_EQ(recv_errno[0], expected_errno); in __recvpair()
259 TH_LOG("Expected:%s", expected_errno ? strerror(expected_errno) : expected_buf); in __recvpair()
/linux/tools/testing/selftests/kvm/x86_64/
H A Dvmx_set_nested_state_test.c36 int expected_errno) in test_nested_state_expect_errno() argument
41 TEST_ASSERT(rv == -1 && errno == expected_errno, in test_nested_state_expect_errno()
43 strerror(expected_errno), expected_errno, rv, strerror(errno), in test_nested_state_expect_errno()
/linux/tools/testing/selftests/exec/
H A Dexecveat.c47 int expected_errno, const char *errno_str) in _check_execveat_fail() argument
63 if (errno != expected_errno) { in _check_execveat_fail()
65 expected_errno, strerror(expected_errno), in _check_execveat_fail()
/linux/tools/testing/selftests/nolibc/
H A Dnolibc-test.c632 #define EXPECT_STRTOX(cond, func, input, base, expected, chars, expected_errno) \ argument
633 …); else ret += expect_strtox(llen, func, input, base, expected, chars, expected_errno); } while (0)
636 …void *func, const char *input, int base, intmax_t expected, int expected_chars, int expected_errno) in expect_strtox() argument
668 if (actual_errno != expected_errno) { in expect_strtox()
/linux/tools/testing/selftests/iommu/
H A Diommufd_utils.h631 #define EXPECT_ERRNO(expected_errno, cmd) \ argument
634 EXPECT_EQ(expected_errno, errno); \