summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2019-09-25 15:48:50 -0500
committerJoel Sherrill <joel@rtems.org>2019-10-04 09:13:28 -0500
commitff4a4a862bc631936aa4fd1c17f181197b91db29 (patch)
treee249b220b1555faca8564268ad1c37c255c4b8c4
parent7685b48f403c609c7b9857d74d76c980071dbcff (diff)
downloadrtems-ff4a4a862bc631936aa4fd1c17f181197b91db29.tar.bz2
termios04/init.c: Remove dead copy of change_iflag()
-rw-r--r--testsuites/libtests/termios04/init.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/testsuites/libtests/termios04/init.c b/testsuites/libtests/termios04/init.c
index 8d76dfe5aa..9540db1967 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";