projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix iconv_open test
[libc-test]
/
src
/
functional
/
strtod_simple.c
diff --git
a/src/functional/strtod_simple.c
b/src/functional/strtod_simple.c
index
c95dc9e
..
53cf93e
100644
(file)
--- 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)
* 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) || \
#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)
{
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");
TEST(d, strtod("0x1p4", 0), 16.0, "hex float %a != %a");
TEST(d, strtod("0x1.1p4", 0), 17.0, "hex float %a != %a");
- return t
est
_status;
+ return t_status;
}
}