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:
parent
3a51cb7912
commit
ed466ea1cf
@ -210,6 +210,13 @@ DEFINE_TEST(test_pax_filename_encoding_3)
|
|||||||
return;
|
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);
|
assert((a = archive_write_new()) != NULL);
|
||||||
assertEqualIntA(a, 0, archive_write_set_format_pax(a));
|
assertEqualIntA(a, 0, archive_write_set_format_pax(a));
|
||||||
assertEqualIntA(a, 0, archive_write_set_compression_none(a));
|
assertEqualIntA(a, 0, archive_write_set_compression_none(a));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user