mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 05:45:42 +03:00
Use correct variable type to make test build on win32.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
4d3a30c21f
commit
874a820426
1 changed files with 4 additions and 3 deletions
|
@ -191,15 +191,16 @@ static void check_iconv_teardown(void **state)
|
|||
int rc = 0;
|
||||
|
||||
(void) state; /* unused */
|
||||
|
||||
#ifdef HAVE_ICONV
|
||||
// this must never crash
|
||||
rc = c_close_iconv();
|
||||
#endif
|
||||
assert_int_equal(rc, 0);
|
||||
}
|
||||
|
||||
static void check_iconv_to_native_normalization(void **state)
|
||||
{
|
||||
const char *out = NULL;
|
||||
mbchar_t *out = NULL;
|
||||
const char *in= "\x48\xc3\xa4"; // UTF8
|
||||
#ifdef __APPLE__
|
||||
const char *exp_out = "\x48\x61\xcc\x88"; // UTF-8-MAC
|
||||
|
@ -218,7 +219,7 @@ static void check_iconv_to_native_normalization(void **state)
|
|||
|
||||
static void check_iconv_from_native_normalization(void **state)
|
||||
{
|
||||
const char *out = NULL;
|
||||
char *out = NULL;
|
||||
#ifdef __APPLE__
|
||||
const char* in = "\x48\x61\xcc\x88"; // UTF-8-MAC
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue