Fix macos test cases.

This commit is contained in:
Klaas Freitag 2013-10-02 12:33:10 +02:00
parent dbe63727a3
commit fb582d8b3d
2 changed files with 5 additions and 7 deletions

View File

@ -99,10 +99,8 @@ static void check_iconv_ascii(void **state)
(void) state; /* unused */
}
#define TESTSTRING "#äA\\#fß§4"
#define LTESTSTRING L"#äA\\#fß§4"
#define TESTSTRING "#cA\\#fß§4"
#define LTESTSTRING L"#cA\\#fß§4"
static void check_to_multibyte(void **state)
{

View File

@ -212,15 +212,15 @@ static void check_csync_vio_opendir_perm(void **state)
assert_non_null(dir);
rc = _tmkdir(dir, S_IWUSR);
rc = _tmkdir(dir, (S_IWUSR|S_IXUSR));
assert_int_equal(rc, 0);
c_free_locale_string(dir);
dh = csync_vio_opendir(csync, CSYNC_TEST_DIR);
assert_null(dh);
assert_int_equal(errno, EACCES);
_tchmod(dir, S_IRWXU);
_tchmod(dir, MKDIR_MASK);
c_free_locale_string(dir);
}
static void check_csync_vio_closedir_null(void **state)