encoding_tests: No more iconv
authorMarkus Goetz <markus@woboq.com>
Wed, 26 Jul 2017 09:46:18 +0000 (11:46 +0200)
committerMarkus Goetz <markus@woboq.com>
Wed, 26 Jul 2017 09:46:18 +0000 (11:46 +0200)
csync/tests/encoding_tests/check_encoding.c

index bbfbe99c8db01c392f8bf32615ff31fbfb422ffc..eb761d318ac7488ed6e440ebf86b58bece410cd5 100644 (file)
 
 static void setup(void **state)
 {
-    int rc = 0;
-
     (void) state; /* unused */
-
-#ifdef HAVE_ICONV
-#ifdef __APPLE__
-    /* this test only works on apple because linux does not know the
-     * UTF-8-MAC encoding that we use here. */
-    rc = c_setup_iconv("UTF-8-MAC");
-#endif
-#endif
-    assert_int_equal(rc, 0);
 }
 
 static void 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)