Fixed #985 : Unittest failed with MinGWx64. And few small improvement were done while looking for mistakes.

Problem was because of Windows uses backslashes '\', not Unix '/'
This commit is contained in:
kyb
2017-06-15 12:36:20 +03:00
parent b596f4e990
commit 6e81d49b33
3 changed files with 5 additions and 3 deletions

View File

@@ -167,6 +167,7 @@ TEST(PrettyWriter, OStreamWrapper) {
TEST(PrettyWriter, FileWriteStream) {
char filename[L_tmpnam];
FILE* fp = TempFile(filename);
ASSERT_TRUE(fp!=NULL);
char buffer[16];
FileWriteStream os(fp, buffer, sizeof(buffer));
PrettyWriter<FileWriteStream> writer(os);