Lines Matching full:failed
5 #define TESTC(c, m) ( (c) || (t_error("%s failed (" m ")\n", #c), 0) )
7 ((r) = (f)) == 0 || (t_error("%s failed: %s (" m ")\n", #f, strerror(r)), 0) )
32 TESTR(r, pthread_key_create(&k1, dtor), "failed to create key"); in main()
33 TESTR(r, pthread_key_create(&k2, dtor), "failed to create key"); in main()
35 TESTR(r, pthread_setspecific(k1, bar), "failed to set tsd"); in main()
36 TESTR(r, pthread_setspecific(k2, bar+1), "failed to set tsd"); in main()
37 TESTR(r, pthread_create(&td, 0, start, foo), "failed to create thread"); in main()
38 TESTR(r, pthread_join(td, &res), "failed to join"); in main()
39 TESTC(res == 0, "pthread_setspecific failed in thread"); in main()
40 TESTC(foo[0] == 1, "dtor failed to run"); in main()
41 TESTC(foo[1] == 1, "dtor failed to run"); in main()
44 TESTR(r, pthread_setspecific(k1, 0), "failed to clear tsd"); in main()
45 TESTR(r, pthread_setspecific(k2, 0), "failed to clear tsd"); in main()
46 TESTR(r, pthread_key_delete(k1), "failed to destroy key"); in main()
47 TESTR(r, pthread_key_delete(k2), "failed to destroy key"); in main()