X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ffunctional%2Fstrtod_simple.c;h=53cf93e3a7ce65fa2a9d9d2eeb3076967158f681;hb=cf1c9918305e2c23758f589a23c1f71af4c431ba;hp=c95dc9ea1d49108098d239c449f12755ef784ce9;hpb=2cf89517c5b25c2524fe0c0c01ed277d7307a852;p=libc-test diff --git a/src/functional/strtod_simple.c b/src/functional/strtod_simple.c index c95dc9e..53cf93e 100644 --- a/src/functional/strtod_simple.c +++ b/src/functional/strtod_simple.c @@ -7,11 +7,11 @@ * f = function call to test (or any expression) * x = expected result * m = message to print on failure (with formats for r & x) -**/ + */ #define TEST(r, f, x, m) ( \ ((r) = (f)) == (x) || \ - (error("%s failed (" m ")\n", #f, r, x, r-x), 0) ) + (t_error("%s failed (" m ")\n", #f, r, x, r-x), 0) ) int main(void) { @@ -27,6 +27,6 @@ int main(void) TEST(d, strtod("0x1p4", 0), 16.0, "hex float %a != %a"); TEST(d, strtod("0x1.1p4", 0), 17.0, "hex float %a != %a"); - return test_status; + return t_status; }