summaryrefslogtreecommitdiff
path: root/source4/torture/local
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-09-01 09:45:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:28 -0500
commit4a17f26292a92c07af99ab1a160f81d853c704d2 (patch)
tree719eb6eb9d26f1be1a2cea2468ff1cc5d0678d4f /source4/torture/local
parentf4dbe1865e714cb2fc87acbe6ab5f331ac9dbb1e (diff)
downloadsamba-4a17f26292a92c07af99ab1a160f81d853c704d2.tar.gz
samba-4a17f26292a92c07af99ab1a160f81d853c704d2.tar.bz2
samba-4a17f26292a92c07af99ab1a160f81d853c704d2.zip
r2170: if we don't have a native iconv library then we can't build this test
(This used to be commit 5cf9333f6021479d62cc99475f4fb9a19588f928)
Diffstat (limited to 'source4/torture/local')
-rw-r--r--source4/torture/local/iconv.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source4/torture/local/iconv.c b/source4/torture/local/iconv.c
index 8057d4faf4..84bca802e9 100644
--- a/source4/torture/local/iconv.c
+++ b/source4/torture/local/iconv.c
@@ -23,6 +23,7 @@
#include "includes.h"
+#if HAVE_NATIVE_ICONV
/*
generate a UTF-16LE buffer for a given unicode codepoint
*/
@@ -240,7 +241,6 @@ static int test_buffer(uint8_t *inbuf, size_t size, const char *charset)
}
if (memcmp(buf3, inbuf, size) != 0) {
- int i;
printf("pull bytes mismatch:\n");
show_buf("inbuf", inbuf, size);
show_buf(" buf3", buf3, size);
@@ -305,3 +305,12 @@ BOOL torture_local_iconv(int dummy)
}
+#else
+
+BOOL torture_local_iconv(int dummy)
+{
+ printf("No native iconv library - can't run iconv test\n");
+ return True;
+}
+
+#endif