[rtems commit] termios04/init.c: Remove dead copy of change_iflag()
Joel Sherrill
joel at rtems.org
Wed Oct 9 19:34:18 UTC 2019
Module: rtems
Branch: master
Commit: ff4a4a862bc631936aa4fd1c17f181197b91db29
Changeset: http://git.rtems.org/rtems/commit/?id=ff4a4a862bc631936aa4fd1c17f181197b91db29
Author: Joel Sherrill <joel at rtems.org>
Date: Wed Sep 25 15:48:50 2019 -0500
termios04/init.c: Remove dead copy of change_iflag()
---
testsuites/libtests/termios04/init.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/testsuites/libtests/termios04/init.c b/testsuites/libtests/termios04/init.c
index 8d76dfe..9540db1 100644
--- a/testsuites/libtests/termios04/init.c
+++ b/testsuites/libtests/termios04/init.c
@@ -29,7 +29,6 @@ void write_helper(int fd, const char *c);
void read_helper(int fd, const char *expected);
void open_it(void);
void close_it(void);
-void change_iflag(const char *desc, int mask, int new);
rtems_task Init(rtems_task_argument argument);
void write_helper(
@@ -93,22 +92,6 @@ void close_it(void)
rtems_test_assert( rc == 0 );
}
-void change_iflag( const char *desc, int mask, int new )
-{
- int rc;
- struct termios attr;
-
- printf( "Changing c_iflag to: %s\n", desc );
- rc = tcgetattr( Test_fd, &attr );
- rtems_test_assert( rc == 0 );
-
- attr.c_iflag &= ~mask;
- attr.c_iflag |= new;
-
- rc = tcsetattr( Test_fd, TCSANOW, &attr );
- rtems_test_assert( rc == 0 );
-}
-
const char ExpectedOutput_1[] = "This is interrupt driven test output.\n";
const char ExpectedInput_1[] = "Blocking interrupt driven read.\n";
const char ExpectedInput_2[] = "Non-Blocking interrupt driven read.\n";
More information about the vc
mailing list