Lines Matching refs:t
45 termios t = {}; in TEST() local
46 ASSERT_EQ(0, cfsetispeed(&t, B1200)); in TEST()
47 ASSERT_EQ(static_cast<speed_t>(B1200), cfgetispeed(&t)); in TEST()
51 termios t = {}; in TEST() local
53 ASSERT_EQ(-1, cfsetispeed(&t, 1200)); in TEST()
58 termios t = {}; in TEST() local
59 ASSERT_EQ(0, cfsetospeed(&t, B1200)); in TEST()
60 ASSERT_EQ(static_cast<speed_t>(B1200), cfgetospeed(&t)); in TEST()
64 termios t = {}; in TEST() local
66 ASSERT_EQ(-1, cfsetospeed(&t, 1200)); in TEST()
71 termios t = {}; in TEST() local
72 ASSERT_EQ(0, cfsetspeed(&t, B1200)); in TEST()
73 ASSERT_EQ(static_cast<speed_t>(B1200), cfgetispeed(&t)); in TEST()
74 ASSERT_EQ(static_cast<speed_t>(B1200), cfgetospeed(&t)); in TEST()
78 termios t = {}; in TEST() local
82 ASSERT_EQ(-1, cfsetspeed(&t, 123)); in TEST()
87 termios t; in TEST() local
88 memset(&t, 0xff, sizeof(t)); in TEST()
89 cfmakeraw(&t); in TEST()
91 EXPECT_EQ(0U, (t.c_iflag & (IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON))); in TEST()
92 EXPECT_EQ(0U, (t.c_oflag & OPOST)); in TEST()
93 EXPECT_EQ(0U, (t.c_lflag & (ECHO|ECHONL|ICANON|ISIG|IEXTEN))); in TEST()
94 EXPECT_EQ(0U, (t.c_cflag & PARENB)); in TEST()
95 EXPECT_EQ(CS8, static_cast<int>(t.c_cflag & CSIZE)); in TEST()
96 EXPECT_EQ(1, t.c_cc[VMIN]); in TEST()
97 EXPECT_EQ(0, t.c_cc[VTIME]); in TEST()