Branch: Tag:

2001-09-18

2001-09-18 22:59:57 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

running 'make test_dlopen' will now run a small testsuite for dlopen

Rev: src/Makefile.in:1.272
Rev: src/dynamic_load.c:1.56
Rev: src/fdlib.c:1.49
Rev: src/test_dynamic_loading.in:1.1
Rev: src/threads.c:1.164

1: Inside #if undefined(TESTING)
- #ifndef TESTING + #ifdef TESTING + #define NO_PIKE_INCLUDES + #define CREATE_MAIN + #define NO_PIKE_GUTS + #endif +  + #ifndef NO_PIKE_INCLUDES   # include "global.h"   # include "interpret.h"   # include "constants.h"
9:   # include "main.h"   # include "constants.h"    - RCSID("$Id: dynamic_load.c,v 1.55 2001/09/11 05:42:20 hubbe Exp $"); + RCSID("$Id: dynamic_load.c,v 1.56 2001/09/18 22:59:56 hubbe Exp $");      #else /* TESTING */   
292:   #define RTLD_GLOBAL 0   #endif    - #ifndef TESTING + #ifndef NO_PIKE_GUTS      #if defined(HAVE_DLOPEN) || defined(USE_DLD) || defined(USE_HPUX_DL) || defined(USE_LOADLIBRARY)   #define USE_DYNAMIC_MODULES
471:   }       - #else /* TESTING */ + #endif /* NO_PIKE_GUTS */ +  + #ifdef CREATE_MAIN   #include <stdio.h>      int main()
496:    fprintf(stderr,"testfunc returned!\n");    exit(1);   } - #endif + #endif /* CREATE_MAIN */