summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-11-04 16:02:46 +0000
committerngie <ngie@FreeBSD.org>2014-11-04 16:02:46 +0000
commit7cf2ae8ad6aa2c415c93a41bbf0a1fb54ae110b3 (patch)
tree4c43d72339452b0655c54986744283cd655e4d04 /contrib/netbsd-tests
parent862145edac7158c80dcc6f785b37510864866009 (diff)
downloadFreeBSD-src-7cf2ae8ad6aa2c415c93a41bbf0a1fb54ae110b3.zip
FreeBSD-src-7cf2ae8ad6aa2c415c93a41bbf0a1fb54ae110b3.tar.gz
Fix the Jenkins test run by skipping the negative testcases earlier
The problem is that lib.libc.locale.t_io:bad_big5_wprintf was printing out illegal Unicode characters, which causes XML parsers to bail immediately, e.g. % kyua report-junit > ~/report.junit % python2 -c 'import xml.dom.minidom as md; md.parse("/home/ngie/report.junit")' Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/local/lib/python2.7/xml/dom/minidom.py", line 1918, in parse return expatbuilder.parse(file) File "/usr/local/lib/python2.7/xml/dom/expatbuilder.py", line 924, in parse result = builder.parseFile(fp) File "/usr/local/lib/python2.7/xml/dom/expatbuilder.py", line 207, in parseFile parser.Parse(buffer, 0) xml.parsers.expat.ExpatError: not well-formed (invalid token): line 27137, column 13
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r--contrib/netbsd-tests/lib/libc/locale/t_io.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/contrib/netbsd-tests/lib/libc/locale/t_io.c b/contrib/netbsd-tests/lib/libc/locale/t_io.c
index 7f7293a..86029e9 100644
--- a/contrib/netbsd-tests/lib/libc/locale/t_io.c
+++ b/contrib/netbsd-tests/lib/libc/locale/t_io.c
@@ -53,14 +53,15 @@ ATF_TC_HEAD(bad_big5_wprintf, tc)
ATF_TC_BODY(bad_big5_wprintf, tc)
{
+#ifdef __FreeBSD__
+ atf_tc_skip("does not fail as expected (may be implementation "
+ "specific issue with the test)");
+#endif
+
/* XXX implementation detail knowledge (wchar_t encoding) */
wchar_t ibuf[] = { 0xcf10, 0 };
setlocale(LC_CTYPE, "zh_TW.Big5");
-#if defined(__FreeBSD__)
- atf_tc_expect_fail("does not fail as expected (may be implementation "
- "specific issue with the test)");
-#endif
ATF_REQUIRE_ERRNO(EILSEQ, wprintf(L"%ls\n", ibuf) < 0);
ATF_REQUIRE(ferror(stdout));
}
@@ -73,15 +74,16 @@ ATF_TC_HEAD(bad_big5_swprintf, tc)
ATF_TC_BODY(bad_big5_swprintf, tc)
{
+#ifdef __FreeBSD__
+ atf_tc_skip("does not fail as expected (may be implementation "
+ "specific issue with the test)");
+#endif
+
/* XXX implementation detail knowledge (wchar_t encoding) */
wchar_t ibuf[] = { 0xcf10, 0 };
wchar_t obuf[20];
setlocale(LC_CTYPE, "zh_TW.Big5");
-#if defined(__FreeBSD__)
- atf_tc_expect_fail("does not fail as expected (may be implementation "
- "specific issue with the test)");
-#endif
ATF_REQUIRE_ERRNO(EILSEQ,
swprintf(obuf, sizeof(obuf), L"%ls\n", ibuf) < 0);
}
@@ -171,7 +173,7 @@ ATF_TC_BODY(bad_big5_getwc, tc)
ATF_REQUIRE(fp != NULL);
setlocale(LC_CTYPE, "zh_TW.Big5");
-#if defined(__FreeBSD__)
+#ifdef __FreeBSD__
atf_tc_expect_fail("does not return WEOF as expected");
#endif
ATF_REQUIRE_EQ(getwc(fp), WEOF);
OpenPOWER on IntegriCloud