aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive/test
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2009-03-07 03:41:29 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2009-03-07 03:41:29 +0000
commit0d9e6eaf1a88ee6da9352e44edaf6d3fffbfb002 (patch)
tree25680fd6a85728ffab9bf4e9764d7555dc596ab4 /lib/libarchive/test
parent419eb469bcfec8735f60a8abec5575233b812936 (diff)
Notes
Diffstat (limited to 'lib/libarchive/test')
-rw-r--r--lib/libarchive/test/test_pax_filename_encoding.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libarchive/test/test_pax_filename_encoding.c b/lib/libarchive/test/test_pax_filename_encoding.c
index 01061199e63a..0983dff7d12f 100644
--- a/lib/libarchive/test/test_pax_filename_encoding.c
+++ b/lib/libarchive/test/test_pax_filename_encoding.c
@@ -217,6 +217,13 @@ DEFINE_TEST(test_pax_filename_encoding_3)
return;
}
+ /* If wctomb is broken, warn and return. */
+ if (wctomb(buff, 0x1234) > 0) {
+ skipping("Cannot test conversion failures because \"C\" "
+ "locale on this system has no invalid characters.");
+ return;
+ }
+
assert((a = archive_write_new()) != NULL);
assertEqualIntA(a, 0, archive_write_set_format_pax(a));
assertEqualIntA(a, 0, archive_write_set_compression_none(a));