projects
/
libc-test
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add .gitignore, all executables have .exe extension
[libc-test]
/
src
/
functional
/
fdopen.c
diff --git
a/src/functional/fdopen.c
b/src/functional/fdopen.c
index
1f4da03
..
392a1b1
100644
(file)
--- a/
src/functional/fdopen.c
+++ b/
src/functional/fdopen.c
@@
-11,7
+11,7
@@
#define TEST(c) do { \
errno = 0; \
if (!(c)) \
#define TEST(c) do { \
errno = 0; \
if (!(c)) \
- error("%s failed (errno = %d)\n", #c, errno); \
+
t_
error("%s failed (errno = %d)\n", #c, errno); \
} while(0)
int main(void)
} while(0)
int main(void)
@@
-29,10
+29,10
@@
int main(void)
TEST(fseeko(f, 0, SEEK_SET)==0);
TEST(fgets(foo, sizeof foo, f));
if (strcmp(foo,"hello") != 0)
TEST(fseeko(f, 0, SEEK_SET)==0);
TEST(fgets(foo, sizeof foo, f));
if (strcmp(foo,"hello") != 0)
- error("fgets read back: \"%s\"; wanted: \"hello\"\n", foo);
+
t_
error("fgets read back: \"%s\"; wanted: \"hello\"\n", foo);
fclose(f);
}
if (fd > 2)
TEST(unlink(tmp) != -1);
fclose(f);
}
if (fd > 2)
TEST(unlink(tmp) != -1);
- return t
est
_status;
+ return t_status;
}
}