/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sched_setscheduler/ |
H A D | 19-3.c | 11 * Test that sched_setscheduler() sets errno == EINVAL when the 18 #include <errno.h> 47 if (result == -1 && errno == EINVAL) { in main() 53 } else if (errno == EPERM) { in main()
|
H A D | 19-2.c | 11 * Test that sched_setscheduler() sets errno == EINVAL when the 18 #include <errno.h> 42 if (result == -1 && errno == EINVAL) { in main() 48 } else if (errno == EPERM) { in main()
|
H A D | 21-1.c | 11 * Test that sched_setscheduler() sets errno == ESRCH when no process can be 19 #include <errno.h> 50 if (result == -1 && errno == ESRCH) { in main() 56 } else if (errno == EPERM) { in main() 61 perror("errno is not ESRCH"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/shm_open/ |
H A D | 15-1.c | 24 #include <errno.h> 35 if (result != 0 && errno != ENOENT) { in main() 54 } else if (result == -1 && errno == EBADF) { in main()
|
H A D | 20-1.c | 21 #include <errno.h> 32 if (result != 0 && errno != ENOENT) { in main() 47 if (result == -1 && errno == EINVAL) { in main()
|
H A D | 20-2.c | 21 #include <errno.h> 32 if (result != 0 && errno != ENOENT) { in main() 50 } else if (result == -1 && errno == EINVAL) { in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaddset/ |
H A D | 4-1.c | 10 * errno to indicate the error. 15 * the signal set, and errno is set to indicate the error. 17 #include <errno.h> 39 if (ret != -1 || errno != EINVAL) { in main() 41 printf("Failed sigaddset(..., %i) ret=%i errno=%i\n", in main() 42 sigs[i], ret, errno); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigdelset/ |
H A D | 4-1.c | 12 * errno to indicate the error. 17 * the signal set, and errno is set to indicate the error. 21 #include <errno.h> 41 if (ret != -1 || errno != EINVAL) { in main() 43 printf("Failed sigdelset(..., %i) ret=%i errno=%i\n", in main() 44 sigs[i], ret, errno); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigismember/ |
H A D | 5-1.c | 12 * errno to indicate the error. 16 * 3) Verify that -1 is returned and errno is set to indicate the error. 20 #include <errno.h> 41 if (ret != -1 || errno != EINVAL) { in main() 43 printf("Failed sigaddset(..., %i) ret=%i errno=%i\n", in main() 44 sigs[i], ret, errno); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigpause/ |
H A D | 4-1.c | 8 This program verifies that sigpause() returns -1 and sets errno to EINVAL 17 #include <errno.h> 38 if (errno == EINVAL) { in main() 40 "set errno to EINVAL\n"); in main() 43 printf("Test FAILED: sigpause did not set errno " in main() 49 if (errno == EINVAL) in main() 50 printf("Test FAILED: sigpause did not set errno " in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/ |
H A D | 3-1.c | 12 * return -1 and set errno to EINVAL 20 #include <errno.h> 36 if (ret != -1 || errno != EINVAL) { in main() 38 printf("Failed sigrelse(%i) ret=%i errno=%i\n", in main() 39 sigs[i], ret, errno); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/ |
H A D | 2-2.c | 30 #include <errno.h> 51 printf(TNAME " Error at open(): %s\n", strerror(errno)); in main() 58 printf(TNAME " Error at aio_cancel(): %s\n", strerror(errno)); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
H A D | 9-1.c | 41 #include <errno.h> 69 UNRESOLVED(errno, "Failed to fork"); in main() 89 UNRESOLVED(errno, "Waitpid returned the wrong PID"); in main()
|
H A D | 4-1.c | 38 #include <errno.h> 59 UNRESOLVED(errno, "Failed to fork"); in main() 77 UNRESOLVED(errno, "Waitpid returned the wrong PID"); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/ |
H A D | 6-2.c | 40 #include <errno.h> 101 while ((ret == -1) && (errno == EINTR)); in threaded() 103 UNRESOLVED(errno, "Failed to wait for the semaphore"); in threaded()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/ |
H A D | 3-1.c | 10 function will fail with errno set to EPERM, unless the sending process 23 #include <errno.h> 46 if (errno == EPERM) { in set_nonroot() 82 if (EPERM != errno) { in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/dirent/dirent_gtest/ |
H A D | dirent_readdir64_test.cpp | 2 #include <errno.h> 24 errno = 0; in HWTEST_F() 29 EXPECT_EQ(0, errno); in HWTEST_F()
|
H A D | dirent_opendir_test.cpp | 2 #include <errno.h> 35 EXPECT_EQ(ENOENT, errno); in HWTEST_F() 37 EXPECT_EQ(ENOTDIR, errno); in HWTEST_F()
|
/third_party/musl/libc-test/src/common/ |
H A D | setrlim.c | 2 #include <errno.h> 11 t_error("getrlimit %d: %s\n", r, strerror(errno)); in t_setrlim() 21 t_error("setrlimit(%d, %ld): %s\n", r, lim, strerror(errno)); in t_setrlim()
|
/third_party/musl/libc-test/src/functionalext/supplement/multibyte/multibyte_gtest/ |
H A D | multibyte_mbrtowc_test.cpp | 1 #include <errno.h> 18 * convert an invalid multi byte sequence to a wide character, the function should return -1 and set errno to 28 errno = 0; in HWTEST_F() 31 EXPECT_TRUE(EILSEQ == errno); in HWTEST_F()
|
/third_party/musl/libc-test/src/functionalext/supplement/multibyte/ |
H A D | mbtowc.c | 52 EXPECT_EQ("mbtowc_0200", errno, EILSEQ); in mbtowc_0200() 56 EXPECT_EQ("mbtowc_0200", errno, EILSEQ); in mbtowc_0200() 60 EXPECT_EQ("mbtowc_0200", errno, EILSEQ); in mbtowc_0200()
|
/third_party/musl/libc-test/src/functionalext/supplement/stat/stat_gtest/ |
H A D | stat_stat_test.cpp | 1 #include <errno.h> 38 errno = 0; in HWTEST_F() 40 EXPECT_EQ(ENOENT, errno); in HWTEST_F()
|
/third_party/musl/libc-test/src/functionalext/supplement/termios/ |
H A D | cfsetospeed.c | 16 #include <errno.h> 47 errno = 0; in cfsetospeed_0200() 53 if (errno != EINVAL) { in cfsetospeed_0200() 54 t_error("%s errno should be EINVAL", __func__); in cfsetospeed_0200()
|
/third_party/python/Lib/test/subprocessdata/ |
H A D | fd_status.py | 9 import errno namespace 28 if e.errno == errno.EBADF:
|
/third_party/selinux/libselinux/src/ |
H A D | policyvers.c | 5 #include <errno.h> 20 errno = ENOENT; in security_policyvers() 27 if (errno == ENOENT) in security_policyvers()
|