Lines Matching refs:CASE_TEST
678 #define CASE_TEST(name) \ macro
717 CASE_TEST(argc); EXPECT_GE(1, test_argc, 1); break; in run_startup()
718 CASE_TEST(argv_addr); EXPECT_PTRGT(1, test_argv, brk); break; in run_startup()
719 CASE_TEST(argv_environ); EXPECT_PTRLT(1, test_argv, environ); break; in run_startup()
720 CASE_TEST(argv_total); EXPECT_EQ(1, environ - test_argv - 1, test_argc ?: 1); break; in run_startup()
721 CASE_TEST(argv0_addr); EXPECT_PTRGT(1, argv0, brk); break; in run_startup()
722 CASE_TEST(argv0_str); EXPECT_STRNZ(1, argv0 > brk ? argv0 : NULL); break; in run_startup()
723 CASE_TEST(argv0_len); EXPECT_GE(1, argv0 > brk ? strlen(argv0) : 0, 1); break; in run_startup()
724 CASE_TEST(environ_addr); EXPECT_PTRGT(1, environ, brk); break; in run_startup()
725 CASE_TEST(environ_envp); EXPECT_PTREQ(1, environ, test_envp); break; in run_startup()
726 CASE_TEST(environ_auxv); EXPECT_PTRLT(test_auxv != (void *)-1, environ, test_auxv); break; in run_startup()
727 …CASE_TEST(environ_total); EXPECT_GE(test_auxv != (void *)-1, (void *)test_auxv - (void *)enviro… in run_startup()
728 CASE_TEST(environ_HOME); EXPECT_PTRNZ(1, getenv("HOME")); break; in run_startup()
729 CASE_TEST(auxv_addr); EXPECT_PTRGT(test_auxv != (void *)-1, test_auxv, brk); break; in run_startup()
730 CASE_TEST(auxv_AT_UID); EXPECT_EQ(1, getauxval(AT_UID), getuid()); break; in run_startup()
731 CASE_TEST(constructor); EXPECT_EQ(1, constructor_test_value, 2); break; in run_startup()
732 CASE_TEST(linkage_errno); EXPECT_PTREQ(1, linkage_test_errno_addr(), &errno); break; in run_startup()
733 CASE_TEST(linkage_constr); EXPECT_EQ(1, linkage_test_constructor_test_value, 6); break; in run_startup()
1022 CASE_TEST(getpid); EXPECT_SYSNE(1, getpid(), -1); break; in run_syscall()
1023 CASE_TEST(getppid); EXPECT_SYSNE(1, getppid(), -1); break; in run_syscall()
1024 CASE_TEST(gettid); EXPECT_SYSNE(has_gettid, gettid(), -1); break; in run_syscall()
1025 CASE_TEST(getpgid_self); EXPECT_SYSNE(1, getpgid(0), -1); break; in run_syscall()
1026 CASE_TEST(getpgid_bad); EXPECT_SYSER(1, getpgid(-1), -1, ESRCH); break; in run_syscall()
1027 CASE_TEST(kill_0); EXPECT_SYSZR(1, kill(getpid(), 0)); break; in run_syscall()
1028 CASE_TEST(kill_CONT); EXPECT_SYSZR(1, kill(getpid(), 0)); break; in run_syscall()
1029 CASE_TEST(kill_BADPID); EXPECT_SYSER(1, kill(INT_MAX, 0), -1, ESRCH); break; in run_syscall()
1030 CASE_TEST(sbrk_0); EXPECT_PTRNE(has_brk, sbrk(0), (void *)-1); break; in run_syscall()
1031 …CASE_TEST(sbrk); if ((p1 = p2 = sbrk(4096)) != (void *)-1) p2 = sbrk(-4096); EXPECT_S… in run_syscall()
1032 CASE_TEST(brk); EXPECT_SYSZR(has_brk, brk(sbrk(0))); break; in run_syscall()
1033 CASE_TEST(chdir_root); EXPECT_SYSZR(1, chdir("/")); chdir(getenv("PWD")); break; in run_syscall()
1034 CASE_TEST(chdir_dot); EXPECT_SYSZR(1, chdir(".")); break; in run_syscall()
1035 CASE_TEST(chdir_blah); EXPECT_SYSER(1, chdir("/blah"), -1, ENOENT); break; in run_syscall()
1036 CASE_TEST(chmod_argv0); EXPECT_SYSZR(1, chmod(argv0, 0555)); break; in run_syscall()
1037 CASE_TEST(chmod_self); EXPECT_SYSER(proc, chmod("/proc/self", 0555), -1, EPERM); break; in run_syscall()
1038 CASE_TEST(chown_self); EXPECT_SYSER(proc, chown("/proc/self", 0, 0), -1, EPERM); break; in run_syscall()
1039 CASE_TEST(chroot_root); EXPECT_SYSZR(euid0, chroot("/")); break; in run_syscall()
1040 CASE_TEST(chroot_blah); EXPECT_SYSER(1, chroot("/proc/self/blah"), -1, ENOENT); break; in run_syscall()
1041 CASE_TEST(chroot_exe); EXPECT_SYSER(1, chroot(argv0), -1, ENOTDIR); break; in run_syscall()
1042 CASE_TEST(close_m1); EXPECT_SYSER(1, close(-1), -1, EBADF); break; in run_syscall()
1043 CASE_TEST(close_dup); EXPECT_SYSZR(1, close(dup(0))); break; in run_syscall()
1044 CASE_TEST(dup_0); tmp = dup(0); EXPECT_SYSNE(1, tmp, -1); close(tmp); break; in run_syscall()
1045 …CASE_TEST(dup_m1); tmp = dup(-1); EXPECT_SYSER(1, tmp, -1, EBADF); if (tmp != -1) close… in run_syscall()
1046 CASE_TEST(dup2_0); tmp = dup2(0, 100); EXPECT_SYSNE(1, tmp, -1); close(tmp); break; in run_syscall()
1047 …CASE_TEST(dup2_m1); tmp = dup2(-1, 100); EXPECT_SYSER(1, tmp, -1, EBADF); if (tmp != -1)… in run_syscall()
1048 CASE_TEST(dup3_0); tmp = dup3(0, 100, 0); EXPECT_SYSNE(1, tmp, -1); close(tmp); break; in run_syscall()
1049 …CASE_TEST(dup3_m1); tmp = dup3(-1, 100, 0); EXPECT_SYSER(1, tmp, -1, EBADF); if (tmp != … in run_syscall()
1050 …CASE_TEST(execve_root); EXPECT_SYSER(1, execve("/", (char*[]){ [0] = "/", [1] = NULL }, NULL… in run_syscall()
1051 CASE_TEST(fork); EXPECT_SYSZR(1, test_fork()); break; in run_syscall()
1052 CASE_TEST(getdents64_root); EXPECT_SYSNE(1, test_getdents64("/"), -1); break; in run_syscall()
1053 CASE_TEST(getdents64_null); EXPECT_SYSER(1, test_getdents64("/dev/null"), -1, ENOTDIR); break; in run_syscall()
1054 CASE_TEST(gettimeofday_tv); EXPECT_SYSZR(1, gettimeofday(&tv, NULL)); break; in run_syscall()
1055 CASE_TEST(gettimeofday_tv_tz);EXPECT_SYSZR(1, gettimeofday(&tv, &tz)); break; in run_syscall()
1056 CASE_TEST(getpagesize); EXPECT_SYSZR(1, test_getpagesize()); break; in run_syscall()
1057 CASE_TEST(ioctl_tiocinq); EXPECT_SYSZR(1, ioctl(0, TIOCINQ, &tmp)); break; in run_syscall()
1058 CASE_TEST(link_root1); EXPECT_SYSER(1, link("/", "/"), -1, EEXIST); break; in run_syscall()
1059 …CASE_TEST(link_blah); EXPECT_SYSER(1, link("/proc/self/blah", "/blah"), -1, ENOENT); break; in run_syscall()
1060 CASE_TEST(link_dir); EXPECT_SYSER(euid0, link("/", "/blah"), -1, EPERM); break; in run_syscall()
1061 …CASE_TEST(link_cross); EXPECT_SYSER(proc, link("/proc/self/cmdline", "/blah"), -1, EXDEV); … in run_syscall()
1062 CASE_TEST(lseek_m1); EXPECT_SYSER(1, lseek(-1, 0, SEEK_SET), -1, EBADF); break; in run_syscall()
1063 CASE_TEST(lseek_0); EXPECT_SYSER(1, lseek(0, 0, SEEK_SET), -1, ESPIPE); break; in run_syscall()
1064 CASE_TEST(mkdir_root); EXPECT_SYSER(1, mkdir("/", 0755), -1, EEXIST); break; in run_syscall()
1065 …CASE_TEST(mmap_bad); EXPECT_PTRER(1, mmap(NULL, 0, PROT_READ, MAP_PRIVATE, 0, 0), MAP_FAI… in run_syscall()
1066 CASE_TEST(munmap_bad); EXPECT_SYSER(1, munmap(NULL, 0), -1, EINVAL); break; in run_syscall()
1067 CASE_TEST(mmap_munmap_good); EXPECT_SYSZR(1, test_mmap_munmap()); break; in run_syscall()
1068 …CASE_TEST(open_tty); EXPECT_SYSNE(1, tmp = open("/dev/null", 0), -1); if (tmp != -1) clos… in run_syscall()
1069 …CASE_TEST(open_blah); EXPECT_SYSER(1, tmp = open("/proc/self/blah", 0), -1, ENOENT); if (t… in run_syscall()
1070 CASE_TEST(pipe); EXPECT_SYSZR(1, test_pipe()); break; in run_syscall()
1071 CASE_TEST(poll_null); EXPECT_SYSZR(1, poll(NULL, 0, 0)); break; in run_syscall()
1072 …CASE_TEST(poll_stdout); EXPECT_SYSNE(1, ({ struct pollfd fds = { 1, POLLOUT, 0}; poll(&fds, … in run_syscall()
1073 CASE_TEST(poll_fault); EXPECT_SYSER(1, poll(NULL, 1, 0), -1, EFAULT); break; in run_syscall()
1074 …CASE_TEST(prctl); EXPECT_SYSER(1, prctl(PR_SET_NAME, (unsigned long)NULL, 0, 0, 0), -1… in run_syscall()
1075 CASE_TEST(read_badf); EXPECT_SYSER(1, read(-1, &tmp, 1), -1, EBADF); break; in run_syscall()
1076 CASE_TEST(rlimit); EXPECT_SYSZR(1, test_rlimit()); break; in run_syscall()
1077 CASE_TEST(rmdir_blah); EXPECT_SYSER(1, rmdir("/blah"), -1, ENOENT); break; in run_syscall()
1078 CASE_TEST(sched_yield); EXPECT_SYSZR(1, sched_yield()); break; in run_syscall()
1079 …CASE_TEST(select_null); EXPECT_SYSZR(1, ({ struct timeval tv = { 0 }; select(0, NULL, NULL, … in run_syscall()
1080 …CASE_TEST(select_stdout); EXPECT_SYSNE(1, ({ fd_set fds; FD_ZERO(&fds); FD_SET(1, &fds); selec… in run_syscall()
1081 …CASE_TEST(select_fault); EXPECT_SYSER(1, select(1, (void *)1, NULL, NULL, 0), -1, EFAULT); br… in run_syscall()
1082 …CASE_TEST(stat_blah); EXPECT_SYSER(1, stat("/proc/self/blah", &stat_buf), -1, ENOENT); bre… in run_syscall()
1083 CASE_TEST(stat_fault); EXPECT_SYSER(1, stat(NULL, &stat_buf), -1, EFAULT); break; in run_syscall()
1084 CASE_TEST(stat_timestamps); EXPECT_SYSZR(1, test_stat_timestamps()); break; in run_syscall()
1085 CASE_TEST(symlink_root); EXPECT_SYSER(1, symlink("/", "/"), -1, EEXIST); break; in run_syscall()
1086 CASE_TEST(uname); EXPECT_SYSZR(proc, test_uname()); break; in run_syscall()
1087 CASE_TEST(uname_fault); EXPECT_SYSER(1, uname(NULL), -1, EFAULT); break; in run_syscall()
1088 CASE_TEST(unlink_root); EXPECT_SYSER(1, unlink("/"), -1, EISDIR); break; in run_syscall()
1089 CASE_TEST(unlink_blah); EXPECT_SYSER(1, unlink("/proc/self/blah"), -1, ENOENT); break; in run_syscall()
1090 CASE_TEST(wait_child); EXPECT_SYSER(1, wait(&tmp), -1, ECHILD); break; in run_syscall()
1091 CASE_TEST(waitpid_min); EXPECT_SYSER(1, waitpid(INT_MIN, &tmp, WNOHANG), -1, ESRCH); break; in run_syscall()
1092 …CASE_TEST(waitpid_child); EXPECT_SYSER(1, waitpid(getpid(), &tmp, WNOHANG), -1, ECHILD); break; in run_syscall()
1093 CASE_TEST(write_badf); EXPECT_SYSER(1, write(-1, &tmp, 1), -1, EBADF); break; in run_syscall()
1094 CASE_TEST(write_zero); EXPECT_SYSZR(1, write(1, &tmp, 0)); break; in run_syscall()
1095 CASE_TEST(syscall_noargs); EXPECT_SYSEQ(1, syscall(__NR_getpid), getpid()); break; in run_syscall()
1096 …CASE_TEST(syscall_args); EXPECT_SYSER(1, syscall(__NR_statx, 0, NULL, 0, 0, NULL), -1, EFAULT… in run_syscall()
1125 CASE_TEST(getenv_TERM); EXPECT_STRNZ(1, getenv("TERM")); break; in run_stdlib()
1126 CASE_TEST(getenv_blah); EXPECT_STRZR(1, getenv("blah")); break; in run_stdlib()
1127 CASE_TEST(setcmp_blah_blah); EXPECT_EQ(1, strcmp("blah", "blah"), 0); break; in run_stdlib()
1128 CASE_TEST(setcmp_blah_blah2); EXPECT_NE(1, strcmp("blah", "blah2"), 0); break; in run_stdlib()
1129 CASE_TEST(setncmp_blah_blah); EXPECT_EQ(1, strncmp("blah", "blah", 10), 0); break; in run_stdlib()
1130 CASE_TEST(setncmp_blah_blah4); EXPECT_EQ(1, strncmp("blah", "blah4", 4), 0); break; in run_stdlib()
1131 CASE_TEST(setncmp_blah_blah5); EXPECT_NE(1, strncmp("blah", "blah5", 5), 0); break; in run_stdlib()
1132 CASE_TEST(setncmp_blah_blah6); EXPECT_NE(1, strncmp("blah", "blah6", 6), 0); break; in run_stdlib()
1133 CASE_TEST(strchr_foobar_o); EXPECT_STREQ(1, strchr("foobar", 'o'), "oobar"); break; in run_stdlib()
1134 CASE_TEST(strchr_foobar_z); EXPECT_STRZR(1, strchr("foobar", 'z')); break; in run_stdlib()
1135 CASE_TEST(strrchr_foobar_o); EXPECT_STREQ(1, strrchr("foobar", 'o'), "obar"); break; in run_stdlib()
1136 CASE_TEST(strrchr_foobar_z); EXPECT_STRZR(1, strrchr("foobar", 'z')); break; in run_stdlib()
1137 …CASE_TEST(strlcat_0); EXPECT_STRBUFEQ(is_nolibc, strlcat(buf, "bar", 0), buf, 3, "test");… in run_stdlib()
1138 …CASE_TEST(strlcat_1); EXPECT_STRBUFEQ(is_nolibc, strlcat(buf, "bar", 1), buf, 4, "test");… in run_stdlib()
1139 …CASE_TEST(strlcat_5); EXPECT_STRBUFEQ(is_nolibc, strlcat(buf, "bar", 5), buf, 7, "test");… in run_stdlib()
1140 …CASE_TEST(strlcat_6); EXPECT_STRBUFEQ(is_nolibc, strlcat(buf, "bar", 6), buf, 7, "testb")… in run_stdlib()
1141 …CASE_TEST(strlcat_7); EXPECT_STRBUFEQ(is_nolibc, strlcat(buf, "bar", 7), buf, 7, "testba"… in run_stdlib()
1142 …CASE_TEST(strlcat_8); EXPECT_STRBUFEQ(is_nolibc, strlcat(buf, "bar", 8), buf, 7, "testbar… in run_stdlib()
1143 …CASE_TEST(strlcpy_0); EXPECT_STRBUFEQ(is_nolibc, strlcpy(buf, "bar", 0), buf, 3, "test");… in run_stdlib()
1144 …CASE_TEST(strlcpy_1); EXPECT_STRBUFEQ(is_nolibc, strlcpy(buf, "bar", 1), buf, 3, ""); bre… in run_stdlib()
1145 …CASE_TEST(strlcpy_2); EXPECT_STRBUFEQ(is_nolibc, strlcpy(buf, "bar", 2), buf, 3, "b"); br… in run_stdlib()
1146 …CASE_TEST(strlcpy_3); EXPECT_STRBUFEQ(is_nolibc, strlcpy(buf, "bar", 3), buf, 3, "ba"); b… in run_stdlib()
1147 …CASE_TEST(strlcpy_4); EXPECT_STRBUFEQ(is_nolibc, strlcpy(buf, "bar", 4), buf, 3, "bar"); … in run_stdlib()
1148 CASE_TEST(memcmp_20_20); EXPECT_EQ(1, memcmp("aaa\x20", "aaa\x20", 4), 0); break; in run_stdlib()
1149 CASE_TEST(memcmp_20_60); EXPECT_LT(1, memcmp("aaa\x20", "aaa\x60", 4), 0); break; in run_stdlib()
1150 CASE_TEST(memcmp_60_20); EXPECT_GT(1, memcmp("aaa\x60", "aaa\x20", 4), 0); break; in run_stdlib()
1151 CASE_TEST(memcmp_20_e0); EXPECT_LT(1, memcmp("aaa\x20", "aaa\xe0", 4), 0); break; in run_stdlib()
1152 CASE_TEST(memcmp_e0_20); EXPECT_GT(1, memcmp("aaa\xe0", "aaa\x20", 4), 0); break; in run_stdlib()
1153 CASE_TEST(memcmp_80_e0); EXPECT_LT(1, memcmp("aaa\x80", "aaa\xe0", 4), 0); break; in run_stdlib()
1154 CASE_TEST(memcmp_e0_80); EXPECT_GT(1, memcmp("aaa\xe0", "aaa\x80", 4), 0); break; in run_stdlib()
1155 CASE_TEST(limit_int8_max); EXPECT_EQ(1, INT8_MAX, (int8_t) 0x7f); break; in run_stdlib()
1156 CASE_TEST(limit_int8_min); EXPECT_EQ(1, INT8_MIN, (int8_t) 0x80); break; in run_stdlib()
1157 CASE_TEST(limit_uint8_max); EXPECT_EQ(1, UINT8_MAX, (uint8_t) 0xff); break; in run_stdlib()
1158 …CASE_TEST(limit_int16_max); EXPECT_EQ(1, INT16_MAX, (int16_t) 0x7fff); brea… in run_stdlib()
1159 …CASE_TEST(limit_int16_min); EXPECT_EQ(1, INT16_MIN, (int16_t) 0x8000); brea… in run_stdlib()
1160 …CASE_TEST(limit_uint16_max); EXPECT_EQ(1, UINT16_MAX, (uint16_t) 0xffff); brea… in run_stdlib()
1161 …CASE_TEST(limit_int32_max); EXPECT_EQ(1, INT32_MAX, (int32_t) 0x7fffffff); … in run_stdlib()
1162 …CASE_TEST(limit_int32_min); EXPECT_EQ(1, INT32_MIN, (int32_t) 0x80000000); … in run_stdlib()
1163 …CASE_TEST(limit_uint32_max); EXPECT_EQ(1, UINT32_MAX, (uint32_t) 0xffffffff); … in run_stdlib()
1164 …CASE_TEST(limit_int64_max); EXPECT_EQ(1, INT64_MAX, (int64_t) 0x7ffffffffff… in run_stdlib()
1165 …CASE_TEST(limit_int64_min); EXPECT_EQ(1, INT64_MIN, (int64_t) 0x80000000000… in run_stdlib()
1166 …CASE_TEST(limit_uint64_max); EXPECT_EQ(1, UINT64_MAX, (uint64_t) 0xfffffffffff… in run_stdlib()
1167 CASE_TEST(limit_int_least8_max); EXPECT_EQ(1, INT_LEAST8_MAX, (int_least8_t) 0x7f); break; in run_stdlib()
1168 CASE_TEST(limit_int_least8_min); EXPECT_EQ(1, INT_LEAST8_MIN, (int_least8_t) 0x80); break; in run_stdlib()
1169 CASE_TEST(limit_uint_least8_max); EXPECT_EQ(1, UINT_LEAST8_MAX, (uint_least8_t) 0xff); break; in run_stdlib()
1170 …CASE_TEST(limit_int_least16_max); EXPECT_EQ(1, INT_LEAST16_MAX, (int_least16_t) 0x7fff); brea… in run_stdlib()
1171 …CASE_TEST(limit_int_least16_min); EXPECT_EQ(1, INT_LEAST16_MIN, (int_least16_t) 0x8000); brea… in run_stdlib()
1172 …CASE_TEST(limit_uint_least16_max); EXPECT_EQ(1, UINT_LEAST16_MAX, (uint_least16_t) 0xffff); brea… in run_stdlib()
1173 …CASE_TEST(limit_int_least32_max); EXPECT_EQ(1, INT_LEAST32_MAX, (int_least32_t) 0x7fffffff); … in run_stdlib()
1174 …CASE_TEST(limit_int_least32_min); EXPECT_EQ(1, INT_LEAST32_MIN, (int_least32_t) 0x80000000); … in run_stdlib()
1175 …CASE_TEST(limit_uint_least32_max); EXPECT_EQ(1, UINT_LEAST32_MAX, (uint_least32_t) 0xffffffffU);… in run_stdlib()
1176 …CASE_TEST(limit_int_least64_min); EXPECT_EQ(1, INT_LEAST64_MIN, (int_least64_t) 0x80000000000… in run_stdlib()
1177 …CASE_TEST(limit_int_least64_max); EXPECT_EQ(1, INT_LEAST64_MAX, (int_least64_t) 0x7ffffffffff… in run_stdlib()
1178 …CASE_TEST(limit_uint_least64_max); EXPECT_EQ(1, UINT_LEAST64_MAX, (uint_least64_t) 0xfffffffffff… in run_stdlib()
1179 CASE_TEST(limit_int_fast8_max); EXPECT_EQ(1, INT_FAST8_MAX, (int_fast8_t) 0x7f); break; in run_stdlib()
1180 CASE_TEST(limit_int_fast8_min); EXPECT_EQ(1, INT_FAST8_MIN, (int_fast8_t) 0x80); break; in run_stdlib()
1181 CASE_TEST(limit_uint_fast8_max); EXPECT_EQ(1, UINT_FAST8_MAX, (uint_fast8_t) 0xff); break; in run_stdlib()
1182 …CASE_TEST(limit_int_fast16_min); EXPECT_EQ(1, INT_FAST16_MIN, (int_fast16_t) SINT_MIN_OF_T… in run_stdlib()
1183 …CASE_TEST(limit_int_fast16_max); EXPECT_EQ(1, INT_FAST16_MAX, (int_fast16_t) SINT_MAX_OF_T… in run_stdlib()
1184 …CASE_TEST(limit_uint_fast16_max); EXPECT_EQ(1, UINT_FAST16_MAX, (uint_fast16_t) UINTPTR_MAX);… in run_stdlib()
1185 …CASE_TEST(limit_int_fast32_min); EXPECT_EQ(1, INT_FAST32_MIN, (int_fast32_t) SINT_MIN_OF_T… in run_stdlib()
1186 …CASE_TEST(limit_int_fast32_max); EXPECT_EQ(1, INT_FAST32_MAX, (int_fast32_t) SINT_MAX_OF_T… in run_stdlib()
1187 …CASE_TEST(limit_uint_fast32_max); EXPECT_EQ(1, UINT_FAST32_MAX, (uint_fast32_t) UINTPTR_MAX);… in run_stdlib()
1188 …CASE_TEST(limit_int_fast64_min); EXPECT_EQ(1, INT_FAST64_MIN, (int_fast64_t) INT64_MIN); b… in run_stdlib()
1189 …CASE_TEST(limit_int_fast64_max); EXPECT_EQ(1, INT_FAST64_MAX, (int_fast64_t) INT64_MAX); b… in run_stdlib()
1190 …CASE_TEST(limit_uint_fast64_max); EXPECT_EQ(1, UINT_FAST64_MAX, (uint_fast64_t) UINT64_MAX); … in run_stdlib()
1191 …CASE_TEST(sizeof_long_sane); EXPECT_EQ(1, sizeof(long) == 8 || sizeof(long) == 4, 1); break; in run_stdlib()
1192 …CASE_TEST(limit_intptr_min); EXPECT_EQ(1, INTPTR_MIN, sizeof(long) == 8 ? (intptr_t) 0x80… in run_stdlib()
1193 …CASE_TEST(limit_intptr_max); EXPECT_EQ(1, INTPTR_MAX, sizeof(long) == 8 ? (intptr_t) 0x7f… in run_stdlib()
1194 …CASE_TEST(limit_uintptr_max); EXPECT_EQ(1, UINTPTR_MAX, sizeof(long) == 8 ? (uintptr_t) 0xff… in run_stdlib()
1195 …CASE_TEST(limit_ptrdiff_min); EXPECT_EQ(1, PTRDIFF_MIN, sizeof(long) == 8 ? (ptrdiff_t) 0x80… in run_stdlib()
1196 …CASE_TEST(limit_ptrdiff_max); EXPECT_EQ(1, PTRDIFF_MAX, sizeof(long) == 8 ? (ptrdiff_t) 0x7f… in run_stdlib()
1197 …CASE_TEST(limit_size_max); EXPECT_EQ(1, SIZE_MAX, sizeof(long) == 8 ? (size_t) 0xff… in run_stdlib()
1198 CASE_TEST(strtol_simple); EXPECT_STRTOX(1, strtol, "35", 10, 35, -1, 0); break; in run_stdlib()
1199 CASE_TEST(strtol_positive); EXPECT_STRTOX(1, strtol, "+35", 10, 35, -1, 0); break; in run_stdlib()
1200 CASE_TEST(strtol_negative); EXPECT_STRTOX(1, strtol, "-35", 10, -35, -1, 0); break; in run_stdlib()
1201 CASE_TEST(strtol_hex_auto); EXPECT_STRTOX(1, strtol, "0xFF", 0, 255, -1, 0); break; in run_stdlib()
1202 CASE_TEST(strtol_base36); EXPECT_STRTOX(1, strtol, "12yZ", 36, 50507, -1, 0); break; in run_stdlib()
1203 …CASE_TEST(strtol_cutoff); EXPECT_STRTOX(1, strtol, "1234567890", 8, 342391, 7, 0); break; in run_stdlib()
1204 CASE_TEST(strtol_octal_auto); EXPECT_STRTOX(1, strtol, "011", 0, 9, -1, 0); break; in run_stdlib()
1205 CASE_TEST(strtol_hex_00); EXPECT_STRTOX(1, strtol, "0x00", 16, 0, -1, 0); break; in run_stdlib()
1206 CASE_TEST(strtol_hex_FF); EXPECT_STRTOX(1, strtol, "FF", 16, 255, -1, 0); break; in run_stdlib()
1207 CASE_TEST(strtol_hex_ff); EXPECT_STRTOX(1, strtol, "ff", 16, 255, -1, 0); break; in run_stdlib()
1208 CASE_TEST(strtol_hex_prefix); EXPECT_STRTOX(1, strtol, "0xFF", 16, 255, -1, 0); break; in run_stdlib()
1209 CASE_TEST(strtol_trailer); EXPECT_STRTOX(1, strtol, "35foo", 10, 35, 2, 0); break; in run_stdlib()
1210 …CASE_TEST(strtol_overflow); EXPECT_STRTOX(1, strtol, "0x8000000000000000", 16, LONG_MAX, -… in run_stdlib()
1211 …CASE_TEST(strtol_underflow); EXPECT_STRTOX(1, strtol, "-0x8000000000000001", 16, LONG_MIN, … in run_stdlib()
1212 CASE_TEST(strtoul_negative); EXPECT_STRTOX(1, strtoul, "-0x1", 16, ULONG_MAX, 4, 0); break; in run_stdlib()
1213 …CASE_TEST(strtoul_overflow); EXPECT_STRTOX(1, strtoul, "0x10000000000000000", 16, ULONG_MAX… in run_stdlib()
1214 CASE_TEST(strerror_success); EXPECT_STREQ(is_nolibc, strerror(0), "errno=0"); break; in run_stdlib()
1215 CASE_TEST(strerror_EINVAL); EXPECT_STREQ(is_nolibc, strerror(EINVAL), "errno=22"); break; in run_stdlib()
1216 …CASE_TEST(strerror_int_max); EXPECT_STREQ(is_nolibc, strerror(INT_MAX), "errno=2147483647")… in run_stdlib()
1217 …CASE_TEST(strerror_int_min); EXPECT_STREQ(is_nolibc, strerror(INT_MIN), "errno=-2147483648"… in run_stdlib()
1293 CASE_TEST(empty); EXPECT_VFPRINTF(0, "", ""); break; in run_vfprintf()
1294 CASE_TEST(simple); EXPECT_VFPRINTF(3, "foo", "foo"); break; in run_vfprintf()
1295 CASE_TEST(string); EXPECT_VFPRINTF(3, "foo", "%s", "foo"); break; in run_vfprintf()
1296 CASE_TEST(number); EXPECT_VFPRINTF(4, "1234", "%d", 1234); break; in run_vfprintf()
1297 CASE_TEST(negnumber); EXPECT_VFPRINTF(5, "-1234", "%d", -1234); break; in run_vfprintf()
1298 CASE_TEST(unsigned); EXPECT_VFPRINTF(5, "12345", "%u", 12345); break; in run_vfprintf()
1299 CASE_TEST(char); EXPECT_VFPRINTF(1, "c", "%c", 'c'); break; in run_vfprintf()
1300 CASE_TEST(hex); EXPECT_VFPRINTF(1, "f", "%x", 0xf); break; in run_vfprintf()
1301 CASE_TEST(pointer); EXPECT_VFPRINTF(3, "0x1", "%p", (void *) 0x1); break; in run_vfprintf()