source: rtems/testsuites/sptests/spfatal13/testcase.h @ b6606e8

Last change on this file since b6606e8 was b6606e8, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 8, 2016 at 3:41:30 PM

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: 833 bytes
Line 
1/*  Test __assert_func with NULL function name
2 *
3 *  COPYRIGHT (c) 1989-2010.
4 *  On-Line Applications Research Corporation (OAR).
5 *
6 *  The license and distribution terms for this file may be
7 *  found in the file LICENSE in this distribution or at
8 *  http://www.rtems.org/license/LICENSE.
9 */
10
11#define FATAL_ERROR_TEST_NAME            "13"
12#define FATAL_ERROR_DESCRIPTION  \
13        "Configuration of unlimited and maximum of 0"
14#define FATAL_ERROR_EXPECTED_SOURCE      INTERNAL_ERROR_CORE
15#define FATAL_ERROR_EXPECTED_ERROR     INTERNAL_ERROR_UNLIMITED_AND_MAXIMUM_IS_0
16
17/*
18 *  Actual object does not matter.  Important thing is zero and unlimited.
19 */
20#define CONFIGURE_MAXIMUM_PARTITIONS rtems_resource_unlimited(0)
21
22void force_error()
23{
24  /* we should not run this far */
25  rtems_partition_create(0, NULL, 0, 0, 0, NULL);
26}
Note: See TracBrowser for help on using the repository browser.