summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-05-06 17:29:29 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-05-06 17:29:29 +0000
commit3cefd8f09020580bdb7edefc6c8cfaae34d82968 (patch)
tree7833f1e63ea3cef08c7bae387ed79b3c822dde7d /testsuites
parent2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-3cefd8f09020580bdb7edefc6c8cfaae34d82968.tar.bz2
2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxfile01/test.c, psxmsgq01/init.c, psxreaddir/test.c: Fix tests broken in warning pass.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/ChangeLog5
-rw-r--r--testsuites/psxtests/psxfile01/test.c2
-rw-r--r--testsuites/psxtests/psxmsgq01/init.c4
-rw-r--r--testsuites/psxtests/psxreaddir/test.c2
4 files changed, 8 insertions, 5 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog
index 0d0e257dff..2a8933d064 100644
--- a/testsuites/psxtests/ChangeLog
+++ b/testsuites/psxtests/ChangeLog
@@ -1,3 +1,8 @@
+2011-05-06 Joel Sherrill <joel.sherrill@oarcorp.com>
+
+ * psxfile01/test.c, psxmsgq01/init.c, psxreaddir/test.c: Fix tests
+ broken in warning pass.
+
2011-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* psx04/task3.c, psxfile01/test.c, psxhdrs/Makefile.am,
diff --git a/testsuites/psxtests/psxfile01/test.c b/testsuites/psxtests/psxfile01/test.c
index 10200fd978..ad0a3319f1 100644
--- a/testsuites/psxtests/psxfile01/test.c
+++ b/testsuites/psxtests/psxfile01/test.c
@@ -656,7 +656,7 @@ since new path is not valid");
status = truncate( "/tmp/fred", 10 );
rtems_test_assert( status == -1);
- rtems_status = rtems_io_register_name( "/dev/console", 0, 0 );
+ rtems_status = rtems_io_register_name( "/dev/not_console", 0, 0 );
directive_failed( rtems_status, "io register" );
test_case_reopen_append();
diff --git a/testsuites/psxtests/psxmsgq01/init.c b/testsuites/psxtests/psxmsgq01/init.c
index 89572408c2..52eb22b90c 100644
--- a/testsuites/psxtests/psxmsgq01/init.c
+++ b/testsuites/psxtests/psxmsgq01/init.c
@@ -1193,7 +1193,6 @@ void verify_timedout_mq_timedsend(
struct timeval tv1, tv2, tv3;
struct timezone tz1, tz2;
int len;
- int status;
char *msg;
printf( "Init: verify_timedout_mq_timedsend - on queue %s ", Test_q[que].name);
@@ -1204,8 +1203,7 @@ void verify_timedout_mq_timedsend(
timeout.tv_sec = tv1.tv_sec - 1;
timeout.tv_nsec = tv1.tv_usec * 1000;
- status = mq_timedsend( Test_q[que].mq, msg, len , 0, &timeout );
- rtems_test_assert( status == 0 );
+ (void) mq_timedsend( Test_q[que].mq, msg, len , 0, &timeout );
gettimeofday( &tv2, &tz2 );
tv3.tv_sec = tv2.tv_sec - tv1.tv_sec;
diff --git a/testsuites/psxtests/psxreaddir/test.c b/testsuites/psxtests/psxreaddir/test.c
index b0900cb3b7..c6df81205d 100644
--- a/testsuites/psxtests/psxreaddir/test.c
+++ b/testsuites/psxtests/psxreaddir/test.c
@@ -82,7 +82,7 @@ void complete_printdir( char *path )
printdir( the_dir );
status = closedir( the_dir );
- rtems_test_assert( status );
+ rtems_test_assert( !status );
}
char *many_files[] = {