vismain patch
Andreas Jaeger
aj@suse.de
Sat May 27 08:54:00 GMT 2000
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
More information about the Libc-hacker
mailing list