7 char modname
[sizeof "tst-tlsmod18aXX.so"];
9 for (int i
= 0; i
< 20; i
++)
11 snprintf (modname
, sizeof modname
, "tst-tlsmod18a%d.so", i
);
12 h
[i
] = dlopen (modname
, RTLD_LAZY
);
15 printf ("unexpectedly failed to open %s", modname
);
20 for (int i
= 0; i
< 20; i
++)
22 int (*fp
) (void) = (int (*) (void)) dlsym (h
[i
], "test");
25 printf ("cannot find test in tst-tlsmod18a%d.so", i
);
36 #define TEST_FUNCTION do_test ()
37 #include "../test-skeleton.c"