1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

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)
This commit is contained in:
Tim Kientzle 2007-07-31 05:03:27 +00:00
parent 789943cc81
commit 9e3fd30bac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171669

View File

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