/[ascend]/trunk/base/generic/utilities/test/test_ascDynaLoad.c
ViewVC logotype

Diff of /trunk/base/generic/utilities/test/test_ascDynaLoad.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 59 by jds, Sun Oct 30 01:38:20 2005 UTC revision 60 by jds, Mon Oct 31 03:39:15 2005 UTC
# Line 22  Line 22 
22   */   */
23    
24  #include <stdio.h>  #include <stdio.h>
25    #ifdef __WIN32__
26  #include <io.h>  #include <io.h>
27    #endif
28  #include "utilities/ascConfig.h"  #include "utilities/ascConfig.h"
29  #include "utilities/ascMalloc.h"  #include "utilities/ascMalloc.h"
30  #include "utilities/ascDynaLoad.h"  #include "utilities/ascDynaLoad.h"
# Line 51  Line 53 
53   */   */
54  static void test_ascDynaLoad(void)  static void test_ascDynaLoad(void)
55  {  {
 #ifdef __WIN32__  
   const char *shlib_name = "..\\..\\..\\generic\\utilities\\test\\test_ascDynaLoad_shlib.dll";  
 #else  
   CU_FAIL("Testing of utilities/ascDynaLoad not implemented for this platform.");  
 #endif  /* __WIN32__ */  
   
56    int open_success;    int open_success;
57    initFunc          init_func;    initFunc          init_func;
58    isInitializedFunc isInitialized_func;    isInitializedFunc isInitialized_func;
# Line 64  static void test_ascDynaLoad(void) Line 60  static void test_ascDynaLoad(void)
60    valuetype        *value;    valuetype        *value;
61    unsigned long prior_meminuse;    unsigned long prior_meminuse;
62    
63    #ifdef __WIN32__
64      const char *shlib_name = "..\\..\\..\\generic\\utilities\\test\\test_ascDynaLoad_shlib.dll";
65    #else
66      const char *shlib_name = "..\\..\\..\\generic\\utilities\\test\\test_ascDynaLoad_shlib.so";
67    #endif  /* __WIN32__ */
68    
69    
70    prior_meminuse = ascmeminuse();             /* save meminuse() at start of test function */    prior_meminuse = ascmeminuse();             /* save meminuse() at start of test function */
71    
72    /* test Asc_DynamicLoad(), Asc_DynamicUnLoad() */    /* test Asc_DynamicLoad(), Asc_DynamicUnLoad() */

Legend:
Removed from v.59  
changed lines
  Added in v.60

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