/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgroup_attach_multi.c | 20 printf("failed to create map '%s'\n", strerror(errno)); in prog_load_cnt() 27 printf("failed to create map '%s'\n", strerror(errno)); in prog_load_cnt() 35 printf("failed to create map '%s'\n", strerror(errno)); in prog_load_cnt() 118 "prog0_attach_to_cg1_multi", "errno=%d\n", errno)) in serial_test_cgroup_attach_multi() 128 "prog1_attach_to_cg1_multi", "errno=%d\n", errno)) in serial_test_cgroup_attach_multi() 133 "prog2_attach_to_cg2_override", "errno=%d\n", errno)) in serial_test_cgroup_attach_multi() 138 "prog3_attach_to_cg3_multi", "errno in serial_test_cgroup_attach_multi() [all...] |
/kernel/linux/linux-6.6/tools/bootconfig/ |
H A D | main.c | 12 #include <errno.h> 144 return -errno; in load_xbc_fd() 150 /* Return the read size or -errno */ 158 return -errno; in load_xbc_file() 161 return -errno; in load_xbc_file() 186 return -errno; in load_xbc_from_initrd() 192 return pr_errno("Failed to lseek for magic", -errno); in load_xbc_from_initrd() 195 return pr_errno("Failed to read", -errno); in load_xbc_from_initrd() 202 return pr_errno("Failed to lseek for size", -errno); in load_xbc_from_initrd() 205 return pr_errno("Failed to read size", -errno); in load_xbc_from_initrd() [all...] |
/third_party/ltp/pan/ |
H A D | zoolib.c | 96 if (errno == ENOENT) { in zoo_open() 102 "Could not open zoo as \"%s\", errno:%d %s", in zoo_open() 103 zooname, errno, strerror(errno)); in zoo_open() 110 "Could not open zoo as \"%s\", errno:%d %s", in zoo_open() 111 zooname, errno, strerror(errno)); in zoo_open() 124 "closing zoo caused error, errno:%d %s", in zoo_close() 125 errno, strerror(errno)); in zoo_close() [all...] |
/third_party/ltp/testcases/kernel/syscalls/epoll/ |
H A D | epoll-ltp.c | 61 TODO: change errno test code to build lists of possible errno values for 62 each erroneous parameter. Check that the errno value is in one 63 of the lists. Currently errno is not checked at all when multiple 88 #include <errno.h> 212 errno = 0; in test_epoll_create() 222 if (errno != EINVAL) { in test_epoll_create() 224 "epoll_create with negative set size didn't set errno to EINVAL"); in test_epoll_create() 240 if (errno != ENOMEM) { in test_epoll_create() 262 errno in test_epoll_create() 486 PROTECT_REGION_START errno = 0; test_epoll_ctl() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/lib/ |
H A D | io.c | 58 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_write() 60 " rc: %zi errno: %i", rc, errno); in test_write() 71 " rc: %zi errno: %i", rc, errno); in test_write() 135 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_read() 137 " rc: %zi errno: %i", rc, errno); in test_read() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/lib/ |
H A D | io.c | 58 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_write() 60 " rc: %zi errno: %i", rc, errno); in test_write() 71 " rc: %zi errno: %i", rc, errno); in test_write() 135 TEST_ASSERT(errno == EAGAIN || errno == EINTR, in test_read() 137 " rc: %zi errno: %i", rc, errno); in test_read() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/ |
H A D | 13-1.c | 29 * -> Verify either errno is EINTR or no error occured. 45 #include <errno.h> 60 UNRESOLVED(errno, "Failed to post semaphore"); in handler() 75 UNRESOLVED(errno, "Failed to init semaphore"); in main() 96 UNRESOLVED(errno, "Unable to read clock"); in main() 107 if (ret != 0 && errno != EINTR) { in main() 108 UNRESOLVED(errno, "Failed to wait for the semaphore"); in main() 114 UNRESOLVED(errno, "Unable to read clock"); in main() 127 UNRESOLVED(errno, "Failed to sem_destroy"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/ |
H A D | 9-1.c | 46 #include <errno.h> 95 while (ret != 0 && errno == EINTR); in threaded() 98 UNRESOLVED(errno, "Failed to wait for the semaphore"); in threaded() 118 if ((sem == SEM_FAILED) && (errno == EEXIST)) { in main() 124 UNRESOLVED(errno, "Failed to create the semaphore"); in main() 143 UNRESOLVED(errno, "Failed to unlink the semaphore"); in main() 157 UNRESOLVED(errno, "Failed to post the semaphore"); in main() 171 UNRESOLVED(errno, "Failed to close the semaphore"); in main()
|
H A D | 7-1.c | 42 #include <errno.h> 89 while ((ret != 0) && (errno == EINTR)); in threaded() 92 UNRESOLVED(errno, "Failed to wait for the semaphore"); in threaded() 111 if ((sem == SEM_FAILED) && (errno == EEXIST)) { in main() 117 UNRESOLVED(errno, "Failed to create the semaphore"); in main() 134 UNRESOLVED(errno, "Failed to unlink the semaphore"); in main() 141 UNRESOLVED(errno, "Failed to post the semaphore"); in main() 155 UNRESOLVED(errno, "Failed to close the semaphore"); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/misc_gtest/ |
H A D | misc_realpath_test.cpp | 1 #include <errno.h> 14 * @tc.desc: This test case aims to test whether the realpath () function correctly sets errno and returns nullptr when 20 errno = 0; in HWTEST_F() 24 EXPECT_EQ(errno, EINVAL); in HWTEST_F() 29 * @tc.desc: This test case aims to test whether the realpath () function correctly sets errno and returns nullptr when 35 errno = 0; in HWTEST_F() 38 EXPECT_EQ(errno, ENOENT); in HWTEST_F() 43 * @tc.desc: This test case aims to test whether the realpath () function correctly sets errno and returns nullptr when 49 errno = 0; in HWTEST_F() 52 EXPECT_EQ(errno, ENOEN in HWTEST_F() [all...] |
/third_party/musl/libc-test/src/math/gen/ |
H A D | prev.c | 3 #include <errno.h> 15 errno = 0; in main() 18 printf("%a (*eptr:%d errno:%d)\n", f, *eptr, errno); in main() 19 errno = 0; in main() 22 printf("%a (*eptr:%d errno:%d)\n", d, *eptr, errno); in main() 23 errno = 0; in main() 26 printf("%La (*eptr:%d errno:%d)\n", ld, *eptr, errno); in main() [all...] |
H A D | next.c | 3 #include <errno.h> 15 errno = 0; in main() 18 printf("%a (*eptr:%d errno:%d)\n", f, *eptr, errno); in main() 19 errno = 0; in main() 22 printf("%a (*eptr:%d errno:%d)\n", d, *eptr, errno); in main() 23 errno = 0; in main() 26 printf("%La (*eptr:%d errno:%d)\n", ld, *eptr, errno); in main() [all...] |
H A D | toe.c | 3 #include <errno.h> 14 errno = 0; in main() 16 printf("%.42e (*eptr:%d errno:%d)\n", f, *eptr, errno); in main() 17 errno = 0; in main() 19 printf("%.42e (*eptr:%d errno:%d)\n", d, *eptr, errno); in main() 20 errno = 0; in main() 22 printf("%.42Le (*eptr:%d errno:%d)\n", ld, *eptr, errno); in main() [all...] |
H A D | tog.c | 3 #include <errno.h> 14 errno = 0; in main() 16 printf("%.42g (*eptr:%d errno:%d)\n", f, *eptr, errno); in main() 17 errno = 0; in main() 19 printf("%.42g (*eptr:%d errno:%d)\n", d, *eptr, errno); in main() 20 errno = 0; in main() 22 printf("%.42Lg (*eptr:%d errno:%d)\n", ld, *eptr, errno); in main() [all...] |
H A D | tof.c | 3 #include <errno.h> 14 errno = 0; in main() 16 printf("%.42f (*eptr:%d errno:%d)\n", f, *eptr, errno); in main() 17 errno = 0; in main() 19 printf("%.42f (*eptr:%d errno:%d)\n", d, *eptr, errno); in main() 20 errno = 0; in main() 22 printf("%.42Lf (*eptr:%d errno:%d)\n", ld, *eptr, errno); in main() [all...] |
H A D | toa.c | 3 #include <errno.h> 14 errno = 0; in main() 16 printf("%a (*eptr:%d errno:%d)\n", f, *eptr, errno); in main() 17 errno = 0; in main() 19 printf("%a (*eptr:%d errno:%d)\n", d, *eptr, errno); in main() 20 errno = 0; in main() 22 printf("%La (*eptr:%d errno:%d)\n", ld, *eptr, errno); in main() [all...] |
/third_party/musl/libc-test/src/regression/ |
H A D | malloc-brk-fail.c | 4 #include <errno.h> 10 #define T(f) ((f)==0 || (t_error(#f " failed: %s\n", strerror(errno)), 0)) 24 errno = 0; in main() 28 errno = 0; in main() 32 else if (errno != ENOMEM) in main() 33 t_error("malloc did not fail with ENOMEM, got %s\n", strerror(errno)); in main() 41 t_error("malloc(10000) failed (eventhough 64k is available to mmap): %s\n", strerror(errno)); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | setns.c | 16 #include <errno.h> 40 errno = 0; in setns_0100() 42 if (result != -1 || errno != EINVAL) { in setns_0100() 44 t_error("%s failed: errno = %d\n", __func__, errno); in setns_0100() 58 errno = 0; in setns_0200() 60 if (result == 0 || errno == 0) { in setns_0200() 62 t_error("%s failed: errno = %d\n", __func__, errno); in setns_0200()
|
H A D | syncfs.c | 16 #include <errno.h> 30 errno = 0; in syncfs_0100() 43 if (errno == EBADF) { in syncfs_0100() 44 t_error("%s errno is %d\n", __func__, errno); in syncfs_0100() 57 errno = 0; in syncfs_0200() 62 if (errno != EBADF) { in syncfs_0200() 63 t_error("%s errno is %d\n", errno); in syncfs_0200()
|
/third_party/musl/libc-test/src/functionalext/supplement/manual/termios/ |
H A D | tcgetsid.c | 16 #include <errno.h> 30 errno = 0; in tcgetsid_0100() 37 if (errno != 0) { in tcgetsid_0100() 38 t_error("%s errno is %d\n", __func__, errno); in tcgetsid_0100() 49 errno = 0; in tcgetsid_0200() 55 if (errno != EBADF) { in tcgetsid_0200() 56 t_error("%s errno is %d", __func__, errno); in tcgetsid_0200()
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | vsyslog.c | 16 #include <errno.h> 31 errno = 0; in vsyslog_0100() 35 if (errno != 0) { in vsyslog_0100() 36 t_error("%s failed: errno = %d\n", __func__, errno); in vsyslog_0100() 48 errno = 0; in vsyslog_0200() 52 if (errno == 0) { in vsyslog_0200() 53 t_error("%s failed: errno = %d\n", __func__, errno); in vsyslog_0200()
|
/third_party/python/Lib/test/ |
H A D | test_errno.py | 1 """Test the errno module 5 import errno namespace 15 self.assertTrue(hasattr(errno, error_code), 16 "errno is missing %s" % error_code) 19 # Every key value in errno.errorcode should be on the module. 20 for value in errno.errorcode.values(): 21 self.assertTrue(hasattr(errno, value), 22 'no %s attr in errno' % value) 28 for attribute in errno.__dict__.keys(): 30 self.assertIn(getattr(errno, attribut [all...] |
/kernel/linux/linux-5.10/samples/bpf/ |
H A D | test_cgrp2_array_pin.c | 11 #include <errno.h> 62 cg2, strerror(errno), errno); in main() 73 strerror(errno), errno); in main() 80 pinned_file, strerror(errno), errno); in main() 95 pinned_file, strerror(errno), errno); in main()
|
/kernel/linux/linux-6.6/tools/testing/selftests/futex/functional/ |
H A D | futex_wait_wouldblock.c | 18 #include <errno.h> 77 if (!res || errno != EWOULDBLOCK) { in main() 79 res ? errno : res, in main() 80 res ? strerror(errno) : ""); in main() 87 error("clock_gettime failed\n", errno); in main() 88 return errno; in main() 100 if (!res || errno != EWOULDBLOCK) { in main() 102 res ? errno : res, in main() 103 res ? strerror(errno) : ""); in main()
|
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | test_cgrp2_array_pin.c | 11 #include <errno.h> 62 cg2, strerror(errno), errno); in main() 73 strerror(errno), errno); in main() 80 pinned_file, strerror(errno), errno); in main() 95 pinned_file, strerror(errno), errno); in main()
|