Changeset e203b65e in rtems


Ignore:
Timestamp:
Dec 9, 2016, 8:28:31 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
c69d6aa
Parents:
a5ba08eb
git-author:
Sebastian Huber <sebastian.huber@…> (12/09/16 08:28:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (12/12/16 07:03:30)
Message:

Add INTERNAL_ERROR_LIBIO_STDERR_FD_OPEN_FAILED

Update #2825.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/open_dev_console.c

    ra5ba08eb re203b65e  
    4444
    4545  if (open("/dev/console", O_WRONLY, 0) != STDERR_FILENO) {
    46     rtems_fatal_error_occurred( 0x55544432 );
     46    _Internal_error( INTERNAL_ERROR_LIBIO_STDERR_FD_OPEN_FAILED );
    4747  }
    4848
  • cpukit/sapi/src/interrtext.c

    ra5ba08eb re203b65e  
    6464  "INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILED",
    6565  "INTERNAL_ERROR_LIBIO_SEM_CREATE_FAILED",
    66   "INTERNAL_ERROR_LIBIO_STDOUT_FD_OPEN_FAILED"
     66  "INTERNAL_ERROR_LIBIO_STDOUT_FD_OPEN_FAILED",
     67  "INTERNAL_ERROR_LIBIO_STDERR_FD_OPEN_FAILED"
    6768};
    6869
  • cpukit/score/include/rtems/score/interr.h

    ra5ba08eb re203b65e  
    177177  INTERNAL_ERROR_LIBIO_USER_ENV_KEY_CREATE_FAILED = 34,
    178178  INTERNAL_ERROR_LIBIO_SEM_CREATE_FAILED = 35,
    179   INTERNAL_ERROR_LIBIO_STDOUT_FD_OPEN_FAILED = 36
     179  INTERNAL_ERROR_LIBIO_STDOUT_FD_OPEN_FAILED = 36,
     180  INTERNAL_ERROR_LIBIO_STDERR_FD_OPEN_FAILED = 37
    180181} Internal_errors_Core_list;
    181182
  • testsuites/sptests/spfatal15/testcase.h

    ra5ba08eb re203b65e  
    1111#define FATAL_ERROR_TEST_NAME            "15"
    1212#define FATAL_ERROR_DESCRIPTION          "fail to open stderr"
    13 #define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_RTEMS_API
    14 #define FATAL_ERROR_EXPECTED_ERROR       0x55544432
     13#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
     14#define FATAL_ERROR_EXPECTED_ERROR       INTERNAL_ERROR_LIBIO_STDERR_FD_OPEN_FAILED
    1515
    1616#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 2
  • testsuites/sptests/spinternalerror02/init.c

    ra5ba08eb re203b65e  
    3737
    3838  rtems_test_assert(
    39     error - 3 == INTERNAL_ERROR_LIBIO_STDOUT_FD_OPEN_FAILED
     39    error - 3 == INTERNAL_ERROR_LIBIO_STDERR_FD_OPEN_FAILED
    4040  );
    4141}
Note: See TracChangeset for help on using the changeset viewer.