Skip to content

Commit

Permalink
fix tests on FreeBSD
Browse files Browse the repository at this point in the history
Signed-off-by: Lucca Jiménez Könings <[email protected]>
  • Loading branch information
jimkoen committed Jan 19, 2024
1 parent 924efe4 commit 38532ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Compat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ TEST_CASE("init and reset termios") {
CHECK_EQ(current.c_iflag, original.c_iflag);
CHECK_EQ(current.c_ispeed, original.c_ispeed);
CHECK_EQ(current.c_lflag, original.c_lflag);
#ifndef BEAMMP_FREEBSD // The 'c_line' attribute seems to only exist on Linux, so we need to omit it on other platforms
CHECK_EQ(current.c_line, original.c_line);
#endif
CHECK_EQ(current.c_oflag, original.c_oflag);
CHECK_EQ(current.c_ospeed, original.c_ospeed);
}
Expand Down

0 comments on commit 38532ba

Please sign in to comment.