source: rtems/testsuites/psxtests/psxfatal01/testcase.h @ 920343e

4.104.114.9
Last change on this file since 920343e was 920343e, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 31, 2008 at 11:42:50 PM

2008-01-31 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac: New tests.
  • psxfatal01/.cvsignore, psxfatal01/Makefile.am, psxfatal01/psxfatal01.scn, psxfatal01/testcase.h, psxfatal02/.cvsignore, psxfatal02/Makefile.am, psxfatal02/psxfatal02.scn, psxfatal02/testcase.h, psxfatal_support/init.c, psxfatal_support/system.h: New files.
  • Property mode set to 100644
File size: 935 bytes
Line 
1/*
2 * Classic API Init task create failure
3 *
4 *  $Id$
5 */
6
7#include <errno.h>
8
9/*
10 *  Way too much stack space.  Should generate a fatal error
11 *  on the init task create.
12 */
13#define CONFIGURE_POSIX_HAS_OWN_INIT_THREAD_TABLE
14#define CONFIGURE_POSIX_INIT_THREAD_STACK_SIZE 0
15posix_initialization_threads_table POSIX_Initialization_threads[] = {
16  { NULL,   /* bad thread entry */
17    0
18  }
19};
20
21#define CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME POSIX_Initialization_threads
22
23#define CONFIGURE_POSIX_INIT_THREAD_TABLE_SIZE \
24  sizeof(CONFIGURE_POSIX_INIT_THREAD_TABLE_NAME) / \
25      sizeof(posix_initialization_threads_table)
26
27#define FATAL_ERROR_DESCRIPTION \
28        "POSIX API Init thread create failure - NULL entry"
29#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_POSIX_API
30#define FATAL_ERROR_EXPECTED_IS_INTERNAL TRUE
31#define FATAL_ERROR_EXPECTED_ERROR       EFAULT
32
33void force_error()
34{
35  /* we will not run this far */
36}
Note: See TracBrowser for help on using the repository browser.