Lines Matching refs:h1
185 FeHandler h1 = { 0, false, 0, false, }, h2 = { 0, false, 0, false, }; in char_mux_test() local
203 &h1, in char_mux_test()
220 g_assert_cmpint(h1.read_count, ==, 0); in char_mux_test()
225 g_assert_cmpint(h1.last_event, !=, 42); /* should be MUX_OUT or OPENED */ in char_mux_test()
229 g_assert_cmpint(h1.last_event, ==, 42); in char_mux_test()
232 g_assert_cmpint(h1.last_event, ==, 42); in char_mux_test()
237 g_assert_cmpint(h1.last_event, ==, 42); in char_mux_test()
241 g_assert_cmpint(h1.last_event, ==, CHR_EVENT_MUX_IN); in char_mux_test()
244 g_assert_cmpint(h1.last_event, ==, -1); in char_mux_test()
249 g_assert_cmpint(h1.read_count, ==, 6); in char_mux_test()
250 g_assert_cmpstr(h1.read_buf, ==, "hello"); in char_mux_test()
251 h1.read_count = 0; in char_mux_test()
254 g_assert_cmpint(h1.last_event, ==, CHR_EVENT_BREAK); in char_mux_test()
260 g_assert_true(h1.is_open); in char_mux_test()
261 g_assert_false(h1.openclose_mismatch); in char_mux_test()
265 h1.openclose_count = h2.openclose_count = 0; in char_mux_test()
271 g_assert_cmpint(h1.openclose_count, ==, 0); in char_mux_test()
274 h1.is_open = h2.is_open = false; in char_mux_test()
280 &h1, in char_mux_test()
289 g_assert_cmpint(h1.openclose_count, ==, 1); in char_mux_test()
290 g_assert_false(h1.openclose_mismatch); in char_mux_test()
296 g_assert_cmpint(h1.openclose_count, ==, 3); in char_mux_test()
297 g_assert_false(h1.openclose_mismatch); in char_mux_test()
313 &h1, in char_mux_test()
320 g_assert_cmpint(h1.read_count, ==, 0); in char_mux_test()
325 g_assert_cmpint(h1.read_count, ==, 0); in char_mux_test()