diff options
author | kientzle <kientzle@FreeBSD.org> | 2009-03-03 07:01:57 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2009-03-03 07:01:57 +0000 |
commit | 1174e07975dcd4639dcde5c4424efb58bdb1ed16 (patch) | |
tree | 7908892c9fd4763e490be285f9b6c8c32a10facf /lib/libarchive/test/test_pax_filename_encoding.c | |
parent | ac2078c0ef963b22f1777d1d642faaa2da649c8e (diff) | |
download | FreeBSD-src-1174e07975dcd4639dcde5c4424efb58bdb1ed16.zip FreeBSD-src-1174e07975dcd4639dcde5c4424efb58bdb1ed16.tar.gz |
Merge r294 from libarchive.googlecode.com: Skip testing for
locale-based failures on systems where the "C" locale is so permissive
that it cannot possibly fail. In particular, this fixes a test
problem on Cygwin.
Diffstat (limited to 'lib/libarchive/test/test_pax_filename_encoding.c')
-rw-r--r-- | lib/libarchive/test/test_pax_filename_encoding.c | 7 |
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 6491634..217074d 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)); |