]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r313378,r313379:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 14 Feb 2017 04:49:24 +0000 (04:49 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 14 Feb 2017 04:49:24 +0000 (04:49 +0000)
commit39b07ba2be0c72249ac1fa31dbcbb7424743edd2
tree417d0e354dd783d59dc47912084cf7f204352701
parentf5334a1e8ac9a72b2f7694aee133f6b5d0c98709
MFC r313378,r313379:

r313378:

Wrap strcmp/wcscmp calls with ATF_CHECK_MSG and drop atf_tc_fail use

The reasoning here was the same as what was done in r313376:
- Gather as many results as possible instead of failing early and
  not testing the rest of the cases.
- Simplify logic when checking test inputs vs outputs and printing
  test result.

r313379:

Expect :int_within_limits to fail when ptrdiff_t/*intmax_t differ in base type

The %t{d,u} (ptrdiff_t) tests fail for the following reasons:
- ptrdiff_t is by definition int32_t on !LP64 architectures and int64_t on
  LP64 architectures.
- intmax_t is by definition fixed to int64_t on all architectures.
- Some of the code in lib/libc/stdio/... is promoting ptrdiff_t to *intmax_t
  when parsing/representing the value.

PR: 191674

git-svn-id: svn://svn.freebsd.org/base/stable/10@313723 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/tests/stdio/printbasic_test.c