diff options
author | mm <mm@FreeBSD.org> | 2011-07-17 21:27:38 +0000 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2011-07-17 21:27:38 +0000 |
commit | af1b78954b9a91ab8b481f90c8b8c3522f6ea0fa (patch) | |
tree | 56f3cd4886fe6a4096374e4acc635884f68227ee /lib/libarchive/test/main.c | |
parent | 352be4e985c0df0cf92cf64d89515b0b32bd1bf4 (diff) | |
download | FreeBSD-src-af1b78954b9a91ab8b481f90c8b8c3522f6ea0fa.zip FreeBSD-src-af1b78954b9a91ab8b481f90c8b8c3522f6ea0fa.tar.gz |
- Update libarchive to 2.8.4
- Add support for extracting xar and rpm archives
- Add libarchive_fe subdir (common code for tar and cpio)
Approved by: kientzle
MFC after: 2 weeks
Diffstat (limited to 'lib/libarchive/test/main.c')
-rw-r--r-- | lib/libarchive/test/main.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/libarchive/test/main.c b/lib/libarchive/test/main.c index 5f8cbc3..0cd16a0 100644 --- a/lib/libarchive/test/main.c +++ b/lib/libarchive/test/main.c @@ -346,7 +346,7 @@ failure_finish(void *extra) if (dump_on_failure) { fprintf(stderr, " *** forcing core dump so failure can be debugged ***\n"); - *(char *)(NULL) = 0; + abort(); exit(1); } } @@ -485,6 +485,22 @@ wcsdump(const char *e, const wchar_t *w) logprintf("\"\n"); } +#ifndef HAVE_WCSCMP +static int +wcscmp(const wchar_t *s1, const wchar_t *s2) +{ + + while (*s1 == *s2++) { + if (*s1++ == L'\0') + return 0; + } + if (*s1 > *--s2) + return 1; + else + return -1; +} +#endif + /* Verify that two wide strings are equal, dump them if not. */ int assertion_equal_wstring(const char *file, int line, |