summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-11 14:02:07 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-03-12 07:54:57 +0100
commitfca27b727212b578d31bb99bc2bafd73b9c16ffc (patch)
tree8175ec0f4e80506e464a8d8bf18541d08b46b319
parent0a64eba9b991925448e81b429348bd8b6478acf2 (diff)
downloadrtems-fca27b727212b578d31bb99bc2bafd73b9c16ffc.tar.bz2
psxtests/psxkey07: Account for RTEMS_TOO_MANY
-rw-r--r--testsuites/psxtests/psxkey07/init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxkey07/init.c b/testsuites/psxtests/psxkey07/init.c
index b2aabb7a2b..c25227d6b7 100644
--- a/testsuites/psxtests/psxkey07/init.c
+++ b/testsuites/psxtests/psxkey07/init.c
@@ -103,6 +103,7 @@ rtems_task Init(rtems_task_argument argument)
);
rtems_test_assert(
( rc == RTEMS_SUCCESSFUL ) || ( rc == RTEMS_UNSATISFIED )
+ || ( rc == RTEMS_TOO_MANY )
);
if ( rc == RTEMS_SUCCESSFUL ) {
@@ -111,10 +112,10 @@ rtems_task Init(rtems_task_argument argument)
}
/**
- * check if return is EAGAIN, it means RTEMS Workspace RAM
+ * check if return is not successful, it means RTEMS Workspace RAM
* have been exhausted.
*/
- if ( rc == RTEMS_UNSATISFIED ) {
+ if ( rc != RTEMS_SUCCESSFUL ) {
pthread_mutex_unlock( &mutex1 );
break;
}