[rtems commit] INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILED

Sebastian Huber sebh at rtems.org
Mon Dec 12 07:05:32 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Dec  9 08:44:22 2016 +0100

INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILED

Update #2825.

---

 cpukit/libcsupport/src/libio_init.c         | 2 +-
 cpukit/sapi/src/interrtext.c                | 3 ++-
 cpukit/score/include/rtems/score/interr.h   | 3 ++-
 testsuites/sptests/spfatal27/testcase.h     | 4 ++--
 testsuites/sptests/spinternalerror02/init.c | 2 +-
 5 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/cpukit/libcsupport/src/libio_init.c b/cpukit/libcsupport/src/libio_init.c
index 3ac2e3b..a265290 100644
--- a/cpukit/libcsupport/src/libio_init.c
+++ b/cpukit/libcsupport/src/libio_init.c
@@ -64,7 +64,7 @@ static void rtems_libio_init( void )
     rtems_libio_free_user_env
   );
   if (eno != 0) {
-    rtems_fatal_error_occurred( RTEMS_UNSATISFIED );
+    _Internal_error( INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILED );
   }
 
   /*
diff --git a/cpukit/sapi/src/interrtext.c b/cpukit/sapi/src/interrtext.c
index b2211ea..916d582 100644
--- a/cpukit/sapi/src/interrtext.c
+++ b/cpukit/sapi/src/interrtext.c
@@ -60,7 +60,8 @@ static const char *const internal_error_text[] = {
   "INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL",
   "INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT",
   "INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILED",
-  "INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED"
+  "INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED",
+  "INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILED"
 };
 
 const char *rtems_internal_error_text( rtems_fatal_code error )
diff --git a/cpukit/score/include/rtems/score/interr.h b/cpukit/score/include/rtems/score/interr.h
index 254d1f5..3bcece0 100644
--- a/cpukit/score/include/rtems/score/interr.h
+++ b/cpukit/score/include/rtems/score/interr.h
@@ -173,7 +173,8 @@ typedef enum {
   INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL = 30,
   INTERNAL_ERROR_BAD_THREAD_DISPATCH_ENVIRONMENT = 31,
   INTERNAL_ERROR_RTEMS_INIT_TASK_CREATE_FAILED = 32,
-  INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED = 33
+  INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED = 33,
+  INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILED = 34
 } Internal_errors_Core_list;
 
 typedef CPU_Uint32ptr Internal_errors_t;
diff --git a/testsuites/sptests/spfatal27/testcase.h b/testsuites/sptests/spfatal27/testcase.h
index a7b26bd..9845959 100644
--- a/testsuites/sptests/spfatal27/testcase.h
+++ b/testsuites/sptests/spfatal27/testcase.h
@@ -14,8 +14,8 @@
 
 #define FATAL_ERROR_TEST_NAME            "27"
 #define FATAL_ERROR_DESCRIPTION          "libio init no posix key left"
-#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
-#define FATAL_ERROR_EXPECTED_ERROR       RTEMS_UNSATISFIED
+#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
+#define FATAL_ERROR_EXPECTED_ERROR       INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILED
 
 #define CONFIGURE_MAXIMUM_POSIX_KEYS (-1)
 #define CONFIGURE_MAXIMUM_POSIX_KEY_VALUE_PAIRS (0)
diff --git a/testsuites/sptests/spinternalerror02/init.c b/testsuites/sptests/spinternalerror02/init.c
index 011a7fe..1d24863 100644
--- a/testsuites/sptests/spinternalerror02/init.c
+++ b/testsuites/sptests/spinternalerror02/init.c
@@ -36,7 +36,7 @@ static void test_internal_error_text(void)
   } while ( text != text_last );
 
   rtems_test_assert(
-    error - 3 == INTERNAL_ERROR_POSIX_INIT_THREAD_CREATE_FAILED
+    error - 3 == INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILED
   );
 }
 




More information about the vc mailing list