diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-10 14:45:22 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-08-10 14:45:22 +0000 |
commit | a263ce5cbfbb8e13545551d3effed53146e733de (patch) | |
tree | 2479fcfb4868057f1c488ae76f66f9ec2d2d583b /testsuites | |
parent | 2010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-a263ce5cbfbb8e13545551d3effed53146e733de.tar.bz2 |
2010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1664/testing
* termios01/init.c: Use INT_MAX instead of hard-coded number for error
case to avoid warning on 16-bit targets.
Diffstat (limited to 'testsuites')
-rw-r--r-- | testsuites/libtests/ChangeLog | 6 | ||||
-rw-r--r-- | testsuites/libtests/termios01/init.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/testsuites/libtests/ChangeLog b/testsuites/libtests/ChangeLog index 2027bad6f8..23fa393c3f 100644 --- a/testsuites/libtests/ChangeLog +++ b/testsuites/libtests/ChangeLog @@ -1,5 +1,11 @@ 2010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com> + PR 1664/testing + * termios01/init.c: Use INT_MAX instead of hard-coded number for error + case to avoid warning on 16-bit targets. + +2010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com> + PR 1661/testing * malloc04/init.c: Add public methods to get/set malloc heap pointer so the tests do not have to peer behind the API. diff --git a/testsuites/libtests/termios01/init.c b/testsuites/libtests/termios01/init.c index ce2afe456d..fddd00e024 100644 --- a/testsuites/libtests/termios01/init.c +++ b/testsuites/libtests/termios01/init.c @@ -497,7 +497,7 @@ rtems_task Init( * tcsetattr - ERROR invalid operation */ puts( "tcsetattr - invalid operation - ENOTSUP" ); - rc = tcsetattr( test, 0x12345, &t ); + rc = tcsetattr( test, INT_MAX, &t ); rtems_test_assert( rc == -1 ); rtems_test_assert( errno == ENOTSUP ); |