diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-01-20 00:34:52 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-01-20 00:34:52 +0000 |
commit | 3d91edb219b3970ccbc9dd53e24536b25fb41edf (patch) | |
tree | ef522a32e560cd00bb86c895590859f7cbdf9fc6 /elf/loadtest.c | |
parent | b25d4ff04dff85bd1d32741cc0a320ee38cfdf51 (diff) | |
download | glibc-3d91edb219b3970ccbc9dd53e24536b25fb41edf.tar.gz glibc-3d91edb219b3970ccbc9dd53e24536b25fb41edf.tar.xz glibc-3d91edb219b3970ccbc9dd53e24536b25fb41edf.zip |
Update.
1999-01-20 Ulrich Drepper <drepper@cygnus.com> * elf/Makefile (tests): Add preloadtest. Add rules to build more test modules and the preloadtest binary. * elf/loadtest.c (TEST_ROUNDS): Increase to 1000. (testobjs): Add more modules. (tests): Add entries for new modules. * elf/preloadtest.c: New file. Test for LD_PRELOAD. * elf/testobj1.c: Add 'preload' function. * elf/testobj2.c: Likewise. * elf/testobj3.c: Likewise. * elf/testobj4.c: New file. * elf/testobj5.c: New file. * elf/testobj6.c: New file.
Diffstat (limited to 'elf/loadtest.c')
-rw-r--r-- | elf/loadtest.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/elf/loadtest.c b/elf/loadtest.c index 209f420141..5b9e116987 100644 --- a/elf/loadtest.c +++ b/elf/loadtest.c @@ -7,7 +7,7 @@ /* How many load/unload operations do we do. */ -#define TEST_ROUNDS 100 +#define TEST_ROUNDS 1000 static struct @@ -21,6 +21,9 @@ static struct { "testobj1.so", NULL }, { "testobj2.so", NULL }, { "testobj3.so", NULL }, + { "testobj4.so", NULL }, + { "testobj5.so", NULL }, + { "testobj6.so", NULL }, }; #define NOBJS (sizeof (testobjs) / sizeof (testobjs[0])) @@ -47,6 +50,18 @@ static const struct { "obj3func1", 2, RTLD_LAZY | RTLD_GLOBAL }, { "obj3func1", 2, RTLD_NOW }, { "obj3func2", 2, RTLD_NOW | RTLD_GLOBAL }, + { "obj4func2", 3, RTLD_LAZY }, + { "obj4func1", 3, RTLD_LAZY | RTLD_GLOBAL }, + { "obj4func1", 3, RTLD_NOW }, + { "obj4func2", 3, RTLD_NOW | RTLD_GLOBAL }, + { "obj5func2", 4, RTLD_LAZY }, + { "obj5func1", 4, RTLD_LAZY | RTLD_GLOBAL }, + { "obj5func1", 4, RTLD_NOW }, + { "obj5func2", 4, RTLD_NOW | RTLD_GLOBAL }, + { "obj6func2", 5, RTLD_LAZY }, + { "obj6func1", 5, RTLD_LAZY | RTLD_GLOBAL }, + { "obj6func1", 5, RTLD_NOW }, + { "obj6func2", 5, RTLD_NOW | RTLD_GLOBAL }, }; #define NTESTS (sizeof (tests) / sizeof (tests[0])) |