Lines Matching refs:ERR
57 int err;
61 err = get_errno();
62 assert_d_eq(err, 0, "Unexpected failure");
76 #define ERR(e) e, #e
79 {"0", "0", -1, ERR(EINVAL), UINTMAX_MAX},
80 {"0", "0", 1, ERR(EINVAL), UINTMAX_MAX},
81 {"0", "0", 37, ERR(EINVAL), UINTMAX_MAX},
83 {"", "", 0, ERR(EINVAL), UINTMAX_MAX},
84 {"+", "+", 0, ERR(EINVAL), UINTMAX_MAX},
85 {"++3", "++3", 0, ERR(EINVAL), UINTMAX_MAX},
86 {"-", "-", 0, ERR(EINVAL), UINTMAX_MAX},
88 {"42", "", 0, ERR(0), KUMAX(42)},
89 {"+42", "", 0, ERR(0), KUMAX(42)},
90 {"-42", "", 0, ERR(0), KUMAX(-42)},
91 {"042", "", 0, ERR(0), KUMAX(042)},
92 {"+042", "", 0, ERR(0), KUMAX(042)},
93 {"-042", "", 0, ERR(0), KUMAX(-042)},
94 {"0x42", "", 0, ERR(0), KUMAX(0x42)},
95 {"+0x42", "", 0, ERR(0), KUMAX(0x42)},
96 {"-0x42", "", 0, ERR(0), KUMAX(-0x42)},
98 {"0", "", 0, ERR(0), KUMAX(0)},
99 {"1", "", 0, ERR(0), KUMAX(1)},
101 {"42", "", 0, ERR(0), KUMAX(42)},
102 {" 42", "", 0, ERR(0), KUMAX(42)},
103 {"42 ", " ", 0, ERR(0), KUMAX(42)},
104 {"0x", "x", 0, ERR(0), KUMAX(0)},
105 {"42x", "x", 0, ERR(0), KUMAX(42)},
107 {"07", "", 0, ERR(0), KUMAX(7)},
108 {"010", "", 0, ERR(0), KUMAX(8)},
109 {"08", "8", 0, ERR(0), KUMAX(0)},
110 {"0_", "_", 0, ERR(0), KUMAX(0)},
112 {"0x", "x", 0, ERR(0), KUMAX(0)},
113 {"0X", "X", 0, ERR(0), KUMAX(0)},
114 {"0xg", "xg", 0, ERR(0), KUMAX(0)},
115 {"0XA", "", 0, ERR(0), KUMAX(10)},
117 {"010", "", 10, ERR(0), KUMAX(10)},
118 {"0x3", "x3", 10, ERR(0), KUMAX(0)},
120 {"12", "2", 2, ERR(0), KUMAX(1)},
121 {"78", "8", 8, ERR(0), KUMAX(7)},
122 {"9a", "a", 10, ERR(0), KUMAX(9)},
123 {"9A", "A", 10, ERR(0), KUMAX(9)},
124 {"fg", "g", 16, ERR(0), KUMAX(15)},
125 {"FG", "G", 16, ERR(0), KUMAX(15)},
126 {"0xfg", "g", 16, ERR(0), KUMAX(15)},
127 {"0XFG", "G", 16, ERR(0), KUMAX(15)},
128 {"z_", "_", 36, ERR(0), KUMAX(35)},
129 {"Z_", "_", 36, ERR(0), KUMAX(35)}
131 #undef ERR
137 int err;
143 err = get_errno();
144 assert_d_eq(err, test->expected_errno,
150 if (err == 0) {