1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

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.
This commit is contained in:
Tim Kientzle 2009-03-03 07:01:57 +00:00
parent 3a51cb7912
commit ed466ea1cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189296

View File

@ -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));