]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Skip tests where Solaris iconv substitutes invalid chars 3078/head
authorVladimír Marek <vlmarek13@gmail.com>
Tue, 26 May 2026 19:27:05 +0000 (21:27 +0200)
committerVladimír Marek <vlmarek13@gmail.com>
Tue, 26 May 2026 19:52:03 +0000 (21:52 +0200)
Solaris iconv may perform an implementation-defined conversion for
non-identical characters instead of failing. In the tested conversions it
substitutes question marks and reports success, so these negative tests do
not match Solaris behavior.

libarchive/test/test_archive_string_conversion.c

index ecc39dffea7f874870d8be578c53b7d75a2e89ac..a726d9ae044329ed6310fe2d4dc705a754a4f37e 100644 (file)
@@ -966,6 +966,10 @@ test_archive_string_conversion_fail_utf8_mbs(struct archive *a,
 DEFINE_TEST(test_archive_string_conversion_fail_c)
 {
        struct archive *a;
+#if defined(__sun)
+       skipping("Solaris iconv substitutes unrepresentable UTF-8 characters");
+       return;
+#endif
 
        /* Test the C locale by not calling setlocale.  */
 
@@ -983,6 +987,10 @@ DEFINE_TEST(test_archive_string_conversion_fail_latin1)
 {
        struct archive *a;
        struct archive_string_conv *sconv;
+#if defined(__sun)
+       skipping("Solaris iconv substitutes unrepresentable UTF-8 characters");
+       return;
+#endif
 
        /* Test a Latin-1 locale.  */
        if (