tests/unit: fix file_writer test on Mac OS X (Darwin) because of clang
Merge pull request #1659 from tzz/fix-darwin-unit-tests

tests/unit: fix file_writer test on Mac OS X (Darwin) because of clang