X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffunctional%2Ftls_align_dlopen.c;h=77a7b9372172217782cd8d5dcdeaafc990fc73b6;hb=ec0d497d9d1190047f9fd35fbc859eb02d52c730;hp=64517e17517f1a014e7504734ba2bca6fd841b0a;hpb=2cf89517c5b25c2524fe0c0c01ed277d7307a852;p=libc-test diff --git a/src/functional/tls_align_dlopen.c b/src/functional/tls_align_dlopen.c index 64517e1..77a7b93 100644 --- a/src/functional/tls_align_dlopen.c +++ b/src/functional/tls_align_dlopen.c @@ -12,19 +12,19 @@ int main() unsigned long addr; } *t; - h = dlopen("./tls_align_dso.so", RTLD_LAZY); + h = dlopen("src/functional/tls_align_dso.so", RTLD_LAZY); if (!h) - error("dlopen failed\n"); + t_error("dlopen failed\n"); t = dlsym(h, "t"); if (!t) - error("dlsym failed\n"); + t_error("dlsym failed\n"); for (i = 0; i < 4; i++) { if (!t[i].name) - error("name is not set for t[%d]\n", i); + t_error("name is not set for t[%d]\n", i); if (t[i].addr & (t[i].align-1)) - error("bad alignment: %s, size: %u, align: %u, addr: 0x%lx\n", + t_error("bad alignment: %s, size: %u, align: %u, addr: 0x%lx\n", t[i].name, t[i].size, t[i].align, t[i].addr); } - return test_status; + return t_status; }