source: rtems/testsuites/psxtests/psxcleanup01/init.c @ b1274bd9

4.104.115
Last change on this file since b1274bd9 was b1274bd9, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/30/09 at 03:33:25

Whitespace removal.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 *
3 *  COPYRIGHT (c) 1989-2009.
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.com/license/LICENSE.
9 *
10 *  $Id$
11 */
12
13#include <rtems.h>
14#include "pmacros.h"
15#include <pthread.h>  /* thread facilities */
16
17void cleaner(void *arg)
18{
19  puts( "clean was not supposed to run" );
20  rtems_test_exit(0);
21}
22
23void *POSIX_Init(
24  void *argument
25)
26{
27  puts( "\n\n*** POSIX CLEANUP TEST 01 ***" );
28
29  puts( "Init - pthread_cleanup_push - a routine we will not execute" );
30  pthread_cleanup_push(cleaner, NULL);
31
32  puts( "Init - pthread_cleanup_pop - do not execute" );
33  pthread_cleanup_pop(0);
34
35  puts( "*** END OF POSIX CLEANUP TEST 01 ***\n" );
36  rtems_test_exit(0);
37}
38
39
40/* configuration information */
41
42#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
43#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
44
45#define CONFIGURE_POSIX_INIT_THREAD_TABLE
46
47#define CONFIGURE_MAXIMUM_POSIX_THREADS 1
48
49#define CONFIGURE_INIT
50#include <rtems/confdefs.h>
Note: See TracBrowser for help on using the repository browser.