diff options
author | Benoit Neil <suky0001@free.fr> | 2009-04-07 21:59:15 +0000 |
---|---|---|
committer | Benoit Neil <suky0001@free.fr> | 2009-04-07 21:59:15 +0000 |
commit | e9dd0998706a0ce099826b982bbb1671909fe026 (patch) | |
tree | 89947e0e7475380f446f0387a9b74d86d4ff9977 /tests/libtest/lib556.c | |
parent | 070d89a5610070e5af7178481bcaacce24bd9af2 (diff) | |
download | curl-e9dd0998706a0ce099826b982bbb1671909fe026.tar.gz |
Added missing tests in CMake, added Makefile.inc for tests (+ use in CMake scripts), and fixed a missing define under windows in a test source file.
Diffstat (limited to 'tests/libtest/lib556.c')
-rw-r--r-- | tests/libtest/lib556.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/libtest/lib556.c b/tests/libtest/lib556.c index 0e3949da3..579321ed9 100644 --- a/tests/libtest/lib556.c +++ b/tests/libtest/lib556.c @@ -12,6 +12,17 @@ #include "memdebug.h" +/* For Windows, mainly (may be moved in a config file?) */ +#ifndef STDIN_FILENO + #define STDIN_FILENO 0 +#endif +#ifndef STDOUT_FILENO + #define STDOUT_FILENO 1 +#endif +#ifndef STDERR_FILENO + #define STDERR_FILENO 2 +#endif + int test(char *URL) { CURLcode res; @@ -53,7 +64,6 @@ int test(char *URL) if(iolen) /* send received stuff to stdout */ write(STDOUT_FILENO, buf, iolen); - total += iolen; } while(((res == CURLE_OK) || (res == CURLE_AGAIN)) && (total < 129)); |