lib/util/charset: the comparsion must be against our charset modules
authorAndrew Bartlett <abartlet@samba.org>
Sat, 10 Sep 2011 05:51:45 +0000 (15:51 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 10 Sep 2011 13:45:42 +0000 (15:45 +0200)
There is little point testing this against the system iconv.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Sep 10 15:45:42 CEST 2011 on sn-devel-104

lib/util/charset/tests/iconv.c

index 62b8d37915c7f71ce7aff2c0783187b158c97c70..48702e9c508a602cb901a94e59b6ab33773710f7 100644 (file)
@@ -158,14 +158,14 @@ static bool test_buffer(struct torture_context *test,
                                                     "failed to open %s to UTF-16LE",
                                                     charset));
                }
-               cd2 = smb_iconv_open_ex(test, charset, "UTF-16LE", lpcfg_parm_bool(test->lp_ctx, NULL, "iconv", "native", true));
+               cd2 = smb_iconv_open_ex(test, charset, "UTF-16LE", false);
                if (cd2 == (iconv_t)-1) {
                        torture_fail(test, 
                                     talloc_asprintf(test, 
                                                     "failed to open %s to UTF-16LE via smb_iconv_open_ex",
                                                     charset));
                }
-               cd3 = smb_iconv_open_ex(test, "UTF-16LE", charset, lpcfg_parm_bool(test->lp_ctx, NULL, "iconv", "native", true));
+               cd3 = smb_iconv_open_ex(test, "UTF-16LE", charset, false);
                if (cd3 == (iconv_t)-1) {
                        torture_fail(test, 
                                     talloc_asprintf(test,