4.104.114.95
Last change
on this file since f8d39b8d was
f8d39b8d,
checked in by Jennifer Averett <Jennifer.Averett@…>, on 02/04/08 at 19:39:43
|
2008-02-04 Jennifer Averett <jennifer.averett@…>
- Makefile.am, configure.ac, psxmsgq01/Makefile.am, psxmsgq01/init.c:
Added tests for failure path coverages. Consolidated methods used in
multiple places into support routines.
- psxkey01/Makefile.am, psxkey01/init.c, psxkey01/psxkey01.scn,
psxkey01/system.h, psxkey01/task.c, psxmsgq02/Makefile.am,
psxmsgq02/init.c, psxmsgq02/psxmsgq02.scn, psxmsgq02/system.h: New files.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-1999. |
---|
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.com/license/LICENSE. |
---|
8 | * |
---|
9 | * $Id$ |
---|
10 | */ |
---|
11 | |
---|
12 | #define CONFIGURE_INIT |
---|
13 | #include "system.h" |
---|
14 | #include <errno.h> |
---|
15 | #include "tmacros.h" |
---|
16 | #include <rtems/score/wkspace.h> |
---|
17 | #include <rtems/score/heap.h> |
---|
18 | |
---|
19 | |
---|
20 | void Key_destructor( |
---|
21 | void *key_data |
---|
22 | ) |
---|
23 | { |
---|
24 | } |
---|
25 | |
---|
26 | |
---|
27 | void *POSIX_Init( |
---|
28 | void *argument |
---|
29 | ) |
---|
30 | { |
---|
31 | int status; |
---|
32 | unsigned int remaining; |
---|
33 | uint32_t *key_data; |
---|
34 | Heap_Information_block info; |
---|
35 | void *temp; |
---|
36 | int i; |
---|
37 | |
---|
38 | puts( "\n\n*** POSIX KEY 01 TEST ***" ); |
---|
39 | |
---|
40 | /* set the time of day, and print our buffer in multiple ways */ |
---|
41 | |
---|
42 | set_time( TM_FRIDAY, TM_MAY, 24, 96, 11, 5, 0 ); |
---|
43 | |
---|
44 | /* get id of this thread */ |
---|
45 | |
---|
46 | Init_id = pthread_self(); |
---|
47 | printf( "Init's ID is 0x%08x\n", Init_id ); |
---|
48 | |
---|
49 | Allocate_majority_of_workspace(84); |
---|
50 | |
---|
51 | puts("Init: pthread_key_create - ENOMEM (Workspace not available)"); |
---|
52 | empty_line(); |
---|
53 | status = pthread_key_create( &Key_id[0], Key_destructor ); |
---|
54 | fatal_directive_check_status_only( status, ENOMEM, "no workspace available" ); |
---|
55 | |
---|
56 | puts( "*** END OF POSIX KEY 01 TEST ***" ); |
---|
57 | rtems_test_exit( 0 ); |
---|
58 | |
---|
59 | return NULL; /* just so the compiler thinks we returned something */ |
---|
60 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.