This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Since some people (including myself) have problems with an endless loop in vismain, I've made the appended patch to use the test-skeleton interface. This way the test is killed after some time. Uli, is it ok to commit the patch? Andreas 2000-05-27 Andreas Jaeger <aj@suse.de> * elf/vismain.c: Use test-skeleton interface. (TEST_FUNCTION): New macro. (do_test): Renamed from main. ============================================================ Index: elf/vismain.c --- elf/vismain.c 2000/05/23 18:12:07 1.1 +++ elf/vismain.c 2000/05/27 15:53:43 @@ -20,6 +20,14 @@ #include <stdlib.h> #include <string.h> +/* Prototype for our test function. */ +extern int do_test (void); + +#define TEST_FUNCTION do_test () + +/* This defines the `main' function and some more. */ +#include <test-skeleton.c> + /* Prototypes for the functions in the DSOs. */ extern int calllocal1 (void); extern int (*getlocal1 (void)) (void); @@ -54,7 +62,7 @@ extern const char *protvaritcpt; int -main (void) +do_test (void) { int res = 0; int val; -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.rhein-neckar.de
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |