Lines Matching refs:ERR
36 int err;
40 err = get_errno();
41 assert_d_eq(err, 0, "Unexpected failure");
55 #define ERR(e) e, #e
58 {"0", "0", -1, ERR(EINVAL), UINTMAX_MAX},
59 {"0", "0", 1, ERR(EINVAL), UINTMAX_MAX},
60 {"0", "0", 37, ERR(EINVAL), UINTMAX_MAX},
62 {"", "", 0, ERR(EINVAL), UINTMAX_MAX},
63 {"+", "+", 0, ERR(EINVAL), UINTMAX_MAX},
64 {"++3", "++3", 0, ERR(EINVAL), UINTMAX_MAX},
65 {"-", "-", 0, ERR(EINVAL), UINTMAX_MAX},
67 {"42", "", 0, ERR(0), KUMAX(42)},
68 {"+42", "", 0, ERR(0), KUMAX(42)},
69 {"-42", "", 0, ERR(0), KUMAX(-42)},
70 {"042", "", 0, ERR(0), KUMAX(042)},
71 {"+042", "", 0, ERR(0), KUMAX(042)},
72 {"-042", "", 0, ERR(0), KUMAX(-042)},
73 {"0x42", "", 0, ERR(0), KUMAX(0x42)},
74 {"+0x42", "", 0, ERR(0), KUMAX(0x42)},
75 {"-0x42", "", 0, ERR(0), KUMAX(-0x42)},
77 {"0", "", 0, ERR(0), KUMAX(0)},
78 {"1", "", 0, ERR(0), KUMAX(1)},
80 {"42", "", 0, ERR(0), KUMAX(42)},
81 {" 42", "", 0, ERR(0), KUMAX(42)},
82 {"42 ", " ", 0, ERR(0), KUMAX(42)},
83 {"0x", "x", 0, ERR(0), KUMAX(0)},
84 {"42x", "x", 0, ERR(0), KUMAX(42)},
86 {"07", "", 0, ERR(0), KUMAX(7)},
87 {"010", "", 0, ERR(0), KUMAX(8)},
88 {"08", "8", 0, ERR(0), KUMAX(0)},
89 {"0_", "_", 0, ERR(0), KUMAX(0)},
91 {"0x", "x", 0, ERR(0), KUMAX(0)},
92 {"0X", "X", 0, ERR(0), KUMAX(0)},
93 {"0xg", "xg", 0, ERR(0), KUMAX(0)},
94 {"0XA", "", 0, ERR(0), KUMAX(10)},
96 {"010", "", 10, ERR(0), KUMAX(10)},
97 {"0x3", "x3", 10, ERR(0), KUMAX(0)},
99 {"12", "2", 2, ERR(0), KUMAX(1)},
100 {"78", "8", 8, ERR(0), KUMAX(7)},
101 {"9a", "a", 10, ERR(0), KUMAX(9)},
102 {"9A", "A", 10, ERR(0), KUMAX(9)},
103 {"fg", "g", 16, ERR(0), KUMAX(15)},
104 {"FG", "G", 16, ERR(0), KUMAX(15)},
105 {"0xfg", "g", 16, ERR(0), KUMAX(15)},
106 {"0XFG", "G", 16, ERR(0), KUMAX(15)},
107 {"z_", "_", 36, ERR(0), KUMAX(35)},
108 {"Z_", "_", 36, ERR(0), KUMAX(35)}
110 #undef ERR
116 int err;
122 err = get_errno();
123 assert_d_eq(err, test->expected_errno,
129 if (err == 0) {