From 647a6300757e141a53a7e7ceb207f6211cb55009 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Tue, 7 Feb 2017 16:58:25 +0000 Subject: Fix tests on Windows (specifically, tested on MSYS2) --- unittests/pwl/enchant_pwl_tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unittests/pwl/enchant_pwl_tests.cpp') diff --git a/unittests/pwl/enchant_pwl_tests.cpp b/unittests/pwl/enchant_pwl_tests.cpp index 99e6394..90be9e8 100644 --- a/unittests/pwl/enchant_pwl_tests.cpp +++ b/unittests/pwl/enchant_pwl_tests.cpp @@ -201,7 +201,7 @@ TEST_FIXTURE(EnchantPwl_TestFixture, sleep(1); // FAT systems have a 2 second resolution // NTFS is appreciably faster but no specs on what it is exactly // c runtime library's time_t has a 1 second resolution - FILE * f = g_fopen(GetPersonalDictFileName().c_str(), "at"); + FILE * f = g_fopen(GetPersonalDictFileName().c_str(), "a"); if(f) { fputs(Utf8Bom, f); @@ -257,7 +257,7 @@ TEST_FIXTURE(EnchantPwl_TestFixture, sleep(1); // FAT systems have a 2 second resolution // NTFS is appreciably faster but no specs on what it is exactly // c runtime library's time_t has a 1 second resolution - FILE * f = g_fopen(GetPersonalDictFileName().c_str(), "at"); + FILE * f = g_fopen(GetPersonalDictFileName().c_str(), "a"); if(f) { fputs(sWords[0].c_str(), f); @@ -1153,7 +1153,7 @@ TEST_FIXTURE(EnchantPwl_TestFixture, sleep(1); // FAT systems have a 2 second resolution // NTFS is appreciably faster but no specs on what it is exactly // c runtime library's time_t has a 1 second resolution - FILE * f = g_fopen(GetPersonalDictFileName().c_str(), "at"); + FILE * f = g_fopen(GetPersonalDictFileName().c_str(), "a"); if(f) { fputs(Utf8Bom, f); for(std::vector::const_iterator itWord = sWords.begin(); -- cgit v1.2.1