[rtems commit] psxtests/psxfatal0[12]: Update due to API changes

Sebastian Huber sebh at rtems.org
Fri Aug 23 10:50:19 UTC 2013


Module:    rtems
Branch:    master
Commit:    396f6442e149233163b3c29c66d3089fd4266b86
Changeset: http://git.rtems.org/rtems/commit/?id=396f6442e149233163b3c29c66d3089fd4266b86

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Aug 23 10:26:06 2013 +0200

psxtests/psxfatal0[12]: Update due to API changes

---

 testsuites/psxtests/psxfatal01/testcase.h |    6 ++++--
 testsuites/psxtests/psxfatal02/testcase.h |    6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/testsuites/psxtests/psxfatal01/testcase.h b/testsuites/psxtests/psxfatal01/testcase.h
index 731a31b..2426e7b 100644
--- a/testsuites/psxtests/psxfatal01/testcase.h
+++ b/testsuites/psxtests/psxfatal01/testcase.h
@@ -4,6 +4,8 @@
 
 #include <errno.h>
 
+#include <rtems/posix/posixapi.h>
+
 /*
  *  Way too much stack space.  Should generate a fatal error
  *  on the init task create.
@@ -26,8 +28,8 @@ posix_initialization_threads_table POSIX_Initialization_threads[] = {
 #define FATAL_ERROR_DESCRIPTION \
         "POSIX API Init thread create failure - NULL entry"
 #define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_POSIX_API
-#define FATAL_ERROR_EXPECTED_IS_INTERNAL TRUE
-#define FATAL_ERROR_EXPECTED_ERROR       EFAULT
+#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
+#define FATAL_ERROR_EXPECTED_ERROR       ((POSIX_FD_PTHREAD << 8) | EFAULT)
 
 void force_error(void)
 {
diff --git a/testsuites/psxtests/psxfatal02/testcase.h b/testsuites/psxtests/psxfatal02/testcase.h
index 4117829..7c10715 100644
--- a/testsuites/psxtests/psxfatal02/testcase.h
+++ b/testsuites/psxtests/psxfatal02/testcase.h
@@ -5,6 +5,8 @@
 #include <errno.h>
 #include <limits.h>
 
+#include <rtems/posix/posixapi.h>
+
 /*
  *  Way too much stack space.  Should generate a fatal error
  *  on the init task create.
@@ -31,8 +33,8 @@ posix_initialization_threads_table POSIX_Initialization_threads[] = {
 #define FATAL_ERROR_DESCRIPTION \
         "POSIX API Init thread create failure -- no memory for stack"
 #define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_POSIX_API
-#define FATAL_ERROR_EXPECTED_IS_INTERNAL TRUE
-#define FATAL_ERROR_EXPECTED_ERROR       EAGAIN
+#define FATAL_ERROR_EXPECTED_IS_INTERNAL FALSE
+#define FATAL_ERROR_EXPECTED_ERROR       ((POSIX_FD_PTHREAD << 8) | EAGAIN)
 
 void force_error(void)
 {




More information about the vc mailing list