summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/test/main.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2007-07-31 05:03:27 +0000
committerkientzle <kientzle@FreeBSD.org>2007-07-31 05:03:27 +0000
commit5bbfc2d7829c0b94e802bccbdf9a2c5eb16c18b2 (patch)
treeb8890daeeb42fc47c0aba66152848c4e9f5f2d7a /lib/libarchive/test/main.c
parentbd2dd6c8b89957805d40bf626407ef367b2543e7 (diff)
downloadFreeBSD-src-5bbfc2d7829c0b94e802bccbdf9a2c5eb16c18b2.zip
FreeBSD-src-5bbfc2d7829c0b94e802bccbdf9a2c5eb16c18b2.tar.gz
Two minor nits:
* Allow libarchive_test to compile on Interix again. * Track the test name (not just line number) when counting skipped tests. Thanks to: Joerg Sonnenberger Approved by: re (blanket; libarchive testing)
Diffstat (limited to 'lib/libarchive/test/main.c')
-rw-r--r--lib/libarchive/test/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libarchive/test/main.c b/lib/libarchive/test/main.c
index 1676e64..b64fe75 100644
--- a/lib/libarchive/test/main.c
+++ b/lib/libarchive/test/main.c
@@ -34,6 +34,12 @@
#include "test.h"
__FBSDID("$FreeBSD$");
+/* Interix doesn't define these in a standard header. */
+#if __INTERIX__
+extern char *optarg;
+extern int optind;
+#endif
+
/* Default is to crash and try to force a core dump on failure. */
static int dump_on_failure = 1;
/* Default is to print some basic information about each test. */
@@ -101,6 +107,7 @@ static const char *skipped_filename;
static int skipped_line;
void skipping_setup(const char *filename, int line)
{
+ skipped_filename = filename;
skipped_line = line;
}
void
OpenPOWER on IntegriCloud