From 7016aa1a900f60e03706fb455c977ce19e861cb0 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Thu, 15 Dec 2011 13:22:20 +0100 Subject: [PATCH] Reactivate mbsrtowcs() tests, as those do work, now. --- .../system/libroot/posix/gnulib-test-mbsrtowcs.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/tests/system/libroot/posix/gnulib-test-mbsrtowcs.c b/src/tests/system/libroot/posix/gnulib-test-mbsrtowcs.c index 441211428e..8bbe1030e4 100644 --- a/src/tests/system/libroot/posix/gnulib-test-mbsrtowcs.c +++ b/src/tests/system/libroot/posix/gnulib-test-mbsrtowcs.c @@ -216,9 +216,6 @@ int main(int argc, char *argv[]) assert(!mbsinit (&state)); input[1] = '\0'; -// Copying mbstate_t doesn't really copy the ICU-converter's state, so this -// doesn't work on Haiku. -#ifndef __HAIKU__ src = input + 2; temp_state = state; ret = mbsrtowcs(NULL, &src, unlimited ? BUFSIZE : 2, @@ -226,7 +223,6 @@ int main(int argc, char *argv[]) assert(ret == 4); assert(src == input + 2); assert(!mbsinit (&state)); -#endif src = input + 2; ret = mbsrtowcs(buf, &src, unlimited ? BUFSIZE : 2, &state); @@ -285,9 +281,6 @@ int main(int argc, char *argv[]) assert(!mbsinit (&state)); input[3] = '\0'; -// Copying mbstate_t doesn't really copy the ICU-converter's state, so this -// doesn't work on Haiku. -#ifndef __HAIKU__ src = input + 4; temp_state = state; ret = mbsrtowcs(NULL, &src, unlimited ? BUFSIZE : 2, @@ -295,7 +288,6 @@ int main(int argc, char *argv[]) assert(ret == 3); assert(src == input + 4); assert(!mbsinit (&state)); -#endif src = input + 4; ret = mbsrtowcs(buf, &src, unlimited ? BUFSIZE : 2, &state); @@ -340,9 +332,6 @@ int main(int argc, char *argv[]) assert(!mbsinit (&state)); input[1] = '\0'; -// Copying mbstate_t doesn't really copy the ICU-converter's state, so this -// doesn't work on Haiku. -#ifndef __HAIKU__ src = input + 2; temp_state = state; ret = mbsrtowcs(NULL, &src, unlimited ? BUFSIZE : 2, @@ -350,7 +339,6 @@ int main(int argc, char *argv[]) assert(ret == 4); assert(src == input + 2); assert(!mbsinit (&state)); -#endif src = input + 2; ret = mbsrtowcs(buf, &src, unlimited ? BUFSIZE : 2, &state);