aboutsummaryrefslogtreecommitdiff
path: root/lib/libarchive/test
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@FreeBSD.org>2009-03-03 07:01:57 +0000
committerTim Kientzle <kientzle@FreeBSD.org>2009-03-03 07:01:57 +0000
commited466ea1cfc247a69f1b9edb075dcd14ec94813c (patch)
tree7908892c9fd4763e490be285f9b6c8c32a10facf /lib/libarchive/test
parent3a51cb7912335e829a49b2c30c6946128c4666e9 (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 649163471e20..217074d8fb26 100644
--- a/lib/libarchive/test/test_pax_filename_encoding.c
+++ b/lib/libarchive/test/test_pax_filename_encoding.c
@@ -210,6 +210,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));