source: rtems/testsuites/sptests/spfatal24/testcase.h @ 99de42c

5
Last change on this file since 99de42c was b6606e8, checked in by Sebastian Huber <sebastian.huber@…>, on 12/08/16 at 15:41:30

score: Remove fatal is internal indicator

The fatal is internal indicator is redundant since the fatal source and
error code uniquely identify a fatal error. Keep the fatal user
extension is internal parameter for backward compatibility and set it to
false always.

Update #2825.

  • Property mode set to 100644
File size: 663 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2010.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#include <rtems/gxx_wrappers.h>
11#include <rtems/malloc.h>
12
13#define FATAL_ERROR_TEST_NAME            "GXX KEY ADD FAILURE"
14#define FATAL_ERROR_DESCRIPTION          "GXX KEY ADD FAILURE"
15#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
16#define FATAL_ERROR_EXPECTED_ERROR       INTERNAL_ERROR_GXX_KEY_ADD_FAILED
17
18void force_error()
19{
20  pthread_key_t key = -1;
21
22  rtems_gxx_setspecific( &key, NULL );
23}
Note: See TracBrowser for help on using the repository browser.