Expect :sscanf_whitespace to fail on !NetBSD OSes

Submitted by: pho
This commit is contained in:
Enji Cooper 2014-11-01 21:30:18 +00:00
parent c069d69178
commit 6a4bfd1397
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273951

View File

@ -64,6 +64,10 @@ ATF_TC_BODY(sscanf_whitespace, tc)
const char str[] = "\f\n\r\t\v%z";
char c;
#ifndef __NetBSD__
atf_tc_expect_fail("fails on FreeBSD and some variants of Linux");
#endif
/* set of "white space" symbols from isspace(3) */
c = 0;
(void)sscanf(str, "%%%c", &c);