11 h
= dlopen("src/functional/tls_init_dso.so", RTLD_NOW
|RTLD_GLOBAL
);
13 t_error("dlopen failed: %s\n", dlerror());
14 f
= dlsym(h
, "gettls");
16 t_error("dlsym failed: %s\n", dlerror());
19 t_error("tls was not initialized at dlopen\n");
20 if (strcmp(s
, "foobar")!=0)
21 t_error("tls was not initialized correctly at dlopen (got \"%s\", want \"foobar\"\n", s
);