Merge "termios_test.cpp: move signedness cast." into main

This commit is contained in:
Treehugger Robot 2024-06-12 22:51:23 +00:00 committed by Gerrit Code Review
commit 573aa599ff

View file

@ -96,7 +96,7 @@ TEST(termios, cfmakeraw) {
EXPECT_EQ(0U, (t.c_oflag & OPOST)); EXPECT_EQ(0U, (t.c_oflag & OPOST));
EXPECT_EQ(0U, (t.c_lflag & (ECHO|ECHONL|ICANON|ISIG|IEXTEN))); EXPECT_EQ(0U, (t.c_lflag & (ECHO|ECHONL|ICANON|ISIG|IEXTEN)));
EXPECT_EQ(0U, (t.c_cflag & PARENB)); EXPECT_EQ(0U, (t.c_cflag & PARENB));
EXPECT_EQ(CS8, static_cast<int>(t.c_cflag & CSIZE)); EXPECT_EQ(static_cast<unsigned>(CS8), (t.c_cflag & CSIZE));
EXPECT_EQ(1, t.c_cc[VMIN]); EXPECT_EQ(1, t.c_cc[VMIN]);
EXPECT_EQ(0, t.c_cc[VTIME]); EXPECT_EQ(0, t.c_cc[VTIME]);
} }