Searched refs:EXPECT_STRTOX (Results 1 – 1 of 1) sorted by relevance
/linux-6.12.1/tools/testing/selftests/nolibc/ |
D | nolibc-test.c | 632 #define EXPECT_STRTOX(cond, func, input, base, expected, chars, expected_errno) \ macro 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() [all …]
|