source: rtems/testsuites/mptests/mp14/exit.c

Last change on this file was f6fcfea1, checked in by Sebastian Huber <sebastian.huber@…>, on Feb 21, 2020 at 2:12:13 PM

mptests/mp14: Include missing header file

Include <mpci.h> for MPCI_Print_statistics().

Update #3875.

  • Property mode set to 100644
File size: 910 bytes
Line 
1/*  Exit_test
2 *
3 *  This routine safely stops the test and prints some information
4 *
5 *  Input parameters:   NONE
6 *
7 *  Output parameters:  NONE
8 *
9 *  COPYRIGHT (c) 1989-1999.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#ifdef HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <mpci.h>
22
23#include "system.h"
24
25void Exit_test( void )
26{
27  rtems_status_code status;
28  rtems_mode        old_mode;
29
30  /*
31   * Wait a bit before shutting down so we don't screw up the other node
32   * when our MPCI shuts down
33   */
34
35  rtems_task_wake_after(20);
36
37  status = rtems_task_mode( RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &old_mode );
38  directive_failed( status, "rtems_task_mode" );
39
40  MPCI_Print_statistics();
41
42  rtems_shutdown_executive( 0 );
43}
Note: See TracBrowser for help on using the repository browser.