/[ascend]/trunk/ascend/utilities/test/test_ascDynaLoad_shlib.c
ViewVC logotype

Contents of /trunk/ascend/utilities/test/test_ascDynaLoad_shlib.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 59 - (show annotations) (download) (as text)
Sun Oct 30 01:38:20 2005 UTC (19 years, 4 months ago) by jds
Original Path: trunk/base/generic/utilities/test/test_ascDynaLoad_shlib.c
File MIME type: text/x-csrc
File size: 308 byte(s)
- prototype unit test suite based on CUnit added.
- unit tests for base/generic/general and base/generic/utilites added.
- 2nd manual rework of doxygen documentation in general and utilities.
- bug fixes (mostly general & utilities) found during test development.
- added asc_assert prototype to redirect failures to Asc_Panic() and enable decoupling assertions from NDEBUG.
- some modifications of interface & implementation to facilitate testing.
- utilities/ascPrint & utilities/ascMalloc functions now always included in base libs to minimize recompilation when an interface chooses different options.
1 #include "utilities/ascConfig.h"
2 #include "test_ascDynaLoad_shlib.h"
3
4 int DLEXPORT value = FALSE;
5
6 int DLEXPORT init(void)
7 {
8 value = TRUE;
9 return -5;
10 }
11
12 int DLEXPORT isInitialized(void)
13 {
14 return value;
15 }
16
17 void DLEXPORT cleanup(void)
18 {
19 value = FALSE;
20 }
21

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22