Skip to content

Commit

Permalink
I guess the test is going to have to be Windows specific
Browse files Browse the repository at this point in the history
  • Loading branch information
dunhor committed Jun 11, 2024
1 parent 3eb7896 commit c0398ad
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libarchive/test/test_archive_string_conversion.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,9 @@ DEFINE_TEST(test_archive_string_conversion)

DEFINE_TEST(test_archive_string_conversion_utf16_utf8)
{
#if !defined(_WIN32) || defined(__CYGWIN__)
skipping("This test is meant to verify unicode string handling on Windows");
#else
struct archive_mstring mstr;
const char* utf8_string;

Expand All @@ -899,10 +902,14 @@ DEFINE_TEST(test_archive_string_conversion_utf16_utf8)
assertEqualString("\xD0\xBF\xD1\x80\xD0\xB8", utf8_string);

archive_mstring_clean(&mstr);
#endif
}

DEFINE_TEST(test_archive_string_conversion_utf8_utf16)
{
#if !defined(_WIN32) || defined(__CYGWIN__)
skipping("This test is meant to verify unicode string handling on Windows");
#else
struct archive_mstring mstr;
const wchar_t* wcs_string;

Expand All @@ -917,6 +924,7 @@ DEFINE_TEST(test_archive_string_conversion_utf8_utf16)
assertEqualWString(L"\U0000043f\U00000440\U00000438", wcs_string);

archive_mstring_clean(&mstr);
#endif
}

DEFINE_TEST(test_archive_string_update_utf8_win)
Expand Down

0 comments on commit c0398ad

Please sign in to comment.