1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-02 12:20:51 +00:00

Remove spurious newlines from atf_tc_fail calls

This changes the results from broken (incorrect) to failed (correct) on
i386

MFC after:	1 week
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2016-09-18 05:54:13 +00:00
parent 87d5d10d7d
commit e57c1140a0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305920
2 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@ _testfmt(const char *result, const char *argstr, const char *fmt,...)
vsnprintf(s, sizeof(s), fmt, ap);
if (strcmp(result, s) != 0) {
atf_tc_fail(
"printf(\"%s\", %s) ==> [%s], expected [%s]\n",
"printf(\"%s\", %s) ==> [%s], expected [%s]",
fmt, argstr, s, result);
}
@ -91,7 +91,7 @@ _testfmt(const char *result, const char *argstr, const char *fmt,...)
vswprintf(ws, sizeof(ws) / sizeof(ws[0]), wfmt, ap2);
if (wcscmp(wresult, ws) != 0) {
atf_tc_fail(
"wprintf(\"%ls\", %s) ==> [%ls], expected [%ls]\n",
"wprintf(\"%ls\", %s) ==> [%ls], expected [%ls]",
wfmt, argstr, ws, wresult);
}
va_end(ap);

View File

@ -72,7 +72,7 @@ _testfmt(const char *result, const char *argstr, const char *fmt,...)
vsnprintf(s, sizeof(s), fmt, ap);
if (strcmp(result, s) != 0) {
atf_tc_fail(
"printf(\"%s\", %s) ==> [%s], expected [%s]\n",
"printf(\"%s\", %s) ==> [%s], expected [%s]",
fmt, argstr, s, result);
}
@ -83,7 +83,7 @@ _testfmt(const char *result, const char *argstr, const char *fmt,...)
vswprintf(ws, sizeof(ws) / sizeof(ws[0]), wfmt, ap2);
if (wcscmp(wresult, ws) != 0) {
atf_tc_fail(
"wprintf(\"%ls\", %s) ==> [%ls], expected [%ls]\n",
"wprintf(\"%ls\", %s) ==> [%ls], expected [%ls]",
wfmt, argstr, ws, wresult);
}
va_end(ap);