[PATCH 1/2] psxtests/psxkey07: Account for RTEMS_TOO_MANY
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Mar 11 13:03:53 UTC 2014
---
testsuites/psxtests/psxkey07/init.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/testsuites/psxtests/psxkey07/init.c b/testsuites/psxtests/psxkey07/init.c
index 6052c46..4f96dea 100644
--- a/testsuites/psxtests/psxkey07/init.c
+++ b/testsuites/psxtests/psxkey07/init.c
@@ -104,6 +104,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 ) {
@@ -112,10 +113,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;
}
--
1.7.7
More information about the devel
mailing list