Lines Matching refs:expect
1130 static int test_type(enum event_type type, enum event_type expect) in test_type() argument
1132 if (type != expect) { in test_type()
1134 expect, type); in test_type()
1141 enum event_type expect, const char *expect_tok) in test_type_token() argument
1143 if (type != expect) { in test_type_token()
1145 expect, type); in test_type_token()
1157 static int __read_expect_type(enum event_type expect, char **tok, int newline_ok) in __read_expect_type() argument
1165 return test_type(type, expect); in __read_expect_type()
1168 static int read_expect_type(enum event_type expect, char **tok) in read_expect_type() argument
1170 return __read_expect_type(expect, tok, 1); in read_expect_type()
1173 static int __read_expected(enum event_type expect, const char *str, in __read_expected() argument
1185 ret = test_type_token(type, token, expect, str); in __read_expected()
1192 static int read_expected(enum event_type expect, const char *str) in read_expected() argument
1194 return __read_expected(expect, str, 1); in read_expected()
1197 static int read_expected_item(enum event_type expect, const char *str) in read_expected_item() argument
1199 return __read_expected(expect, str, 0); in read_expected_item()