projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math: only report at most one <2ulp error for acosh and asinh
[libc-test]
/
src
/
functional
/
tls_init.c
diff --git
a/src/functional/tls_init.c
b/src/functional/tls_init.c
index
8a43829
..
d8b6e8f
100644
(file)
--- a/
src/functional/tls_init.c
+++ b/
src/functional/tls_init.c
@@
-7,15
+7,15
@@
__thread int tls_zero;
static void *f(void *arg)
{
if (tls_fix != 23)
static void *f(void *arg)
{
if (tls_fix != 23)
- error("fixed init failed: want 23 got %d\n", tls_fix);
+
t_
error("fixed init failed: want 23 got %d\n", tls_fix);
if (tls_zero != 0)
if (tls_zero != 0)
- error("zero init failed: want 0 got %d\n", tls_zero);
+
t_
error("zero init failed: want 0 got %d\n", tls_zero);
tls_fix++;
tls_zero++;
return 0;
}
tls_fix++;
tls_zero++;
return 0;
}
-#define CHECK(f) do{ if(f) error("%s failed.\n", #f); }while(0)
+#define CHECK(f) do{ if(f)
t_
error("%s failed.\n", #f); }while(0)
#define length(a) (sizeof(a)/sizeof*(a))
int main()
#define length(a) (sizeof(a)/sizeof*(a))
int main()
@@
-24,9
+24,9
@@
int main()
int i, j;
if (tls_fix != 23)
int i, j;
if (tls_fix != 23)
- error("fixed init failed: want 23 got %d\n", tls_fix);
+
t_
error("fixed init failed: want 23 got %d\n", tls_fix);
if (tls_zero != 0)
if (tls_zero != 0)
- error("zero init failed: want 0 got %d\n", tls_zero);
+
t_
error("zero init failed: want 0 got %d\n", tls_zero);
for (j = 0; j < 2; j++) {
for (i = 0; i < length(t); i++) {
for (j = 0; j < 2; j++) {
for (i = 0; i < length(t); i++) {
@@
-38,5
+38,5
@@
int main()
CHECK(pthread_join(t[i], 0));
}
CHECK(pthread_join(t[i], 0));
}
- return t
est
_status;
+ return t_status;
}
}