Add tests.

This commit is contained in:
Victor Zverovich
2014-05-15 07:45:44 -07:00
parent e1ba41f0ce
commit d758dbb33a
5 changed files with 134 additions and 5 deletions
+4 -1
View File
@@ -46,6 +46,10 @@
#endif // _WIN32
#ifdef FMT_INCLUDE_POSIX_TEST
# include "posix-test.h"
#endif
// Retries the expression while it evaluates to -1 and error equals to EINTR.
#define FMT_RETRY(result, expression) \
do { \
@@ -53,7 +57,6 @@
} while (result == -1 && errno == EINTR)
namespace {
// TODO: test
#ifdef _WIN32
// On Windows the count argument to read and write is unsigned, so convert
// it from size_t preventing integer overflow.