Message ID | 20210114002558.2827978-1-shorne@gmail.com |
---|---|
State | New |
Headers | show |
Series | [v3] math/test-tgmath2: Fix fabs failure when no long double | expand |
On Thu, 14 Jan 2021, Stafford Horne via Libc-alpha wrote: > Thanks Joseph for reviewing. Shall I commit? I may have access, but > I don't think I have been blessed to do so yet. Overseers, please add shorne to the glibc group. Once that's done, yes, please commit and push your own approved patch.
Hi - > Overseers, please add shorne to the glibc group. Once that's done, yes, > please commit and push your own approved patch. Done. - FChE
diff --git a/math/test-tgmath2.c b/math/test-tgmath2.c index 14a3453169..b8fb00c566 100644 --- a/math/test-tgmath2.c +++ b/math/test-tgmath2.c @@ -122,7 +122,7 @@ int counts[Tlast][C_last]; __asm __volatile ("" : : "r" (&texpr)); \ if (count != 1 || counts[T##type][C_##fn] != 1) \ { \ - FAIL ("wrong function called"); \ + FAIL ("wrong function called, "#fn" ("#type")"); \ memset (counts, 0, sizeof (counts)); \ } \ count = 0; \ @@ -171,7 +171,7 @@ test_fabs (const int Vint4, const long long int Vllong4) TEST (fabs (vcldouble1), ldouble, cabs); TEST (fabs (Vfloat1), float, fabs); TEST (fabs (Vdouble1), double, fabs); - TEST (fabs (Vldouble1), ldouble, fabs); + TEST (fabs (Vldouble2), ldouble, fabs); #ifndef __OPTIMIZE__ /* GCC is too smart to optimize these out. */ TEST (fabs (Vint1), double, fabs);