summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-10-12 21:59:23 +0000
committerngie <ngie@FreeBSD.org>2014-10-12 21:59:23 +0000
commitb463c81586c75c1544987853784de32b3ae51687 (patch)
treec2ea5441ace20a952fafc214a4b4bf2098ed3835 /contrib/netbsd-tests/lib/libc
parent58bd819849119cdcc80dcf3601c7fce2ddc14cff (diff)
downloadFreeBSD-src-b463c81586c75c1544987853784de32b3ae51687.zip
FreeBSD-src-b463c81586c75c1544987853784de32b3ae51687.tar.gz
- Add libutil #include for fparseln
- Change ATF_REQUIRE_EQ_MSG to ATF_CHECK_EQ_MSG to gather all failing results possible (currently 12 with leftassoc) - Mark leftassoc "atf_tc_expect_fail" on FreeBSD (PR coming soon after further analysis is done on the code) In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests/lib/libc')
-rw-r--r--contrib/netbsd-tests/lib/libc/regex/t_regex_att.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/regex/t_regex_att.c b/contrib/netbsd-tests/lib/libc/regex/t_regex_att.c
index beaeb04..fb8f285 100644
--- a/contrib/netbsd-tests/lib/libc/regex/t_regex_att.c
+++ b/contrib/netbsd-tests/lib/libc/regex/t_regex_att.c
@@ -48,6 +48,9 @@ __RCSID("$NetBSD: t_regex_att.c,v 1.1 2012/08/24 20:24:40 jmmv Exp $");
#include <vis.h>
#include <ctype.h>
#include <atf-c.h>
+#if defined(__FreeBSD__)
+#include <libutil.h>
+#endif
static const char sep[] = "\r\n\t";
static const char delim[3] = "\\\\\0";
@@ -374,7 +377,11 @@ checkmatches(const char *matches, size_t nm, const regmatch_t *pm,
" cur=%d, max=%zu", res, l, len - off);
off += l;
}
+#if defined(__FreeBSD__)
+ ATF_CHECK_STREQ_MSG(res, matches, " at line %zu", lineno);
+#else
ATF_REQUIRE_STREQ_MSG(res, matches, " at line %zu", lineno);
+#endif
free(res);
}
@@ -573,6 +580,9 @@ ATF_TC_BODY(leftassoc, tc)
* any explation. Mark as broken here, but I don't know why. */
atf_tc_expect_fail("Reason for breakage unknown");
#endif
+#if defined(__FreeBSD__)
+ atf_tc_expect_fail("The expected and matched groups are mismatched on FreeBSD");
+#endif
att_test(tc, "leftassoc");
}
OpenPOWER on IntegriCloud