summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-10 14:45:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-10 14:45:22 +0000
commita263ce5cbfbb8e13545551d3effed53146e733de (patch)
tree2479fcfb4868057f1c488ae76f66f9ec2d2d583b /testsuites/libtests
parent2010-08-10 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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/libtests')
-rw-r--r--testsuites/libtests/ChangeLog6
-rw-r--r--testsuites/libtests/termios01/init.c2
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 );