source: rtems/testsuites/sptests/spfatal25/init.c @ 1a48cbf

5
Last change on this file since 1a48cbf was 1a48cbf, checked in by Sebastian Huber <sebastian.huber@…>, on 11/11/19 at 19:08:46

sptests: Avoid include path magic

Update #3818.

  • Property mode set to 100644
File size: 847 bytes
Line 
1#ifdef HAVE_CONFIG_H
2#include "config.h"
3#endif
4
5#include "../spfatal_support/spfatal.h"
6
7/*
8 *  COPYRIGHT (c) 1989-2010.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.org/license/LICENSE.
14 */
15
16#include <rtems/gxx_wrappers.h>
17
18#define FATAL_ERROR_TEST_NAME            "GXX MUTEX INIT FAILED"
19#define FATAL_ERROR_DESCRIPTION          "GXX MUTEX INIT FAILED"
20#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
21#define FATAL_ERROR_EXPECTED_ERROR       INTERNAL_ERROR_GXX_MUTEX_INIT_FAILED
22
23static void force_error(void)
24{
25 __gthread_mutex_t mutex;
26
27  while ( true ) {
28    rtems_gxx_mutex_init( &mutex );
29    rtems_test_assert( mutex != 0 );
30  }
31}
32
33#include "../spfatal_support/spfatalimpl.h"
Note: See TracBrowser for help on using the repository browser.