MFC r345596:Fix pidfile_open(3) to handle relative paths with multiple components.
humanize_number(3): fix math edge case in rounding large numbersFix for remainder overflow, when in rare cases adding remainder to dividerexceeded 1 and turned the total to 1000 in final formattin
humanize_number(3): fix math edge case in rounding large numbersFix for remainder overflow, when in rare cases adding remainder to dividerexceeded 1 and turned the total to 1000 in final formatting, taking upthe space for the unit character.The fix continues the division of the original number if the above casehappens -- added the appropriate check to the for loop performingthe division. This lowers the value shown, to make it fit into the bufferspace provided (1.0M for 4+1 character buffer, as used by ls).Add test case for the reported bug and extend test program to supportproviding buffer length (ls -lh uses 5, tests hard-coded 4).PR: 224498Submitted by: Pawel Biernacki <[email protected]>Reported by: Masachika Ishizuka <[email protected]>Reviewed by: cem, kibApproved by: cem, kibMFC after: 1 weekSponsored by: Mysterious Code Ltd.Differential Revision: D13578
show more ...
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
enable pidfile tests on arm64Pidfile tests were disabled on arm64 (in r286863) because they hung.They have been fixed (r306098) and so can be enabled now.PR: 202304Sponsored by: The FreeBSD Fo
enable pidfile tests on arm64Pidfile tests were disabled on arm64 (in r286863) because they hung.They have been fixed (r306098) and so can be enabled now.PR: 202304Sponsored by: The FreeBSD Foundation
Increase WARNS for libutil testsATF tests have a default WARNS of 0, unlike other usermode programs.Reviewed by: ngie, julianMFC after: 3 weeksSponsored by: Spectra Logic CorporationDiffer
Increase WARNS for libutil testsATF tests have a default WARNS of 0, unlike other usermode programs.Reviewed by: ngie, julianMFC after: 3 weeksSponsored by: Spectra Logic CorporationDifferential Revision: https://reviews.freebsd.org/D9933
Use kqueue(2) instead of select(2).This helps to ensure we will not lose SIGINT sent by parent to child.Reviewed by: sbruno, ngieSponsored by: DARPA, AFRLSponsored by: HEIF5Differential Revisio
Use kqueue(2) instead of select(2).This helps to ensure we will not lose SIGINT sent by parent to child.Reviewed by: sbruno, ngieSponsored by: DARPA, AFRLSponsored by: HEIF5Differential Revision: https://reviews.freebsd.org/D7892
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedafter r298107Summary of changes:- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that na
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedafter r298107Summary of changes:- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed- Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc- Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously.- Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk- Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk.- Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo- Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup)Document the proposed changes in share/examples/tests/tests/... via examplesso it's clear that ${PACKAGES}FILES is the suggested way forward in terms ofreplacing FILES. share/mk/bsd.README didn't seem like the appropriate methodof communicating that info.MFC after: never probablyX-MFC with: r298107PR: 209114Relnotes: yesTested with: buildworld, installworld, checkworld; buildworld, packageworldSponsored by: EMC / Isilon Storage Division
DIRDEPS_BUILD: Connect MK_TESTS.Sponsored by: EMC / Isilon Storage Division
Avoid adding the '-release' suffix to non-debug kernel packages.Sponsored by: The FreeBSD Foundation
Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andnetbsd-tests.test.mk (r289151)- Eliminate explicit OBJTOP/SRCTOP setting- Convert all ad hoc NetBSD test integration
Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andnetbsd-tests.test.mk (r289151)- Eliminate explicit OBJTOP/SRCTOP setting- Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk- Remove unnecessary TESTSDIR setting- Use SRCTOP where possible for clarityMFC after: 2 weeksSponsored by: EMC / Isilon Storage Divison
On arm64 disable three tests that hang or panicEach issue has a PR open to track. This workaround allows us to run thetests to investigate the failures and avoid any new regressions.PR: 202304,
On arm64 disable three tests that hang or panicEach issue has a PR open to track. This workaround allows us to run thetests to investigate the failures and avoid any new regressions.PR: 202304, 202305, 202307Reviewed by: ngieSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D3378
Convert libraries to use LIBADDWhile here reduce a bit overlinking
Integrate lib/libutil into the build/kyuaRemove the .t wrappersRename all of the TAP test applications from test-<test> to<test>_test to match the convention described in the TestSuitewiki page
Integrate lib/libutil into the build/kyuaRemove the .t wrappersRename all of the TAP test applications from test-<test> to<test>_test to match the convention described in the TestSuitewiki pagehumanize_number_test.c:- Fix -Wformat warnings with counter variables- Fix minor style(9) issues:-- Header sorting-- Variable declaration alignment/sorting in main(..)-- Fit the lines in <80 columns- Fix an off by one index error in the testcase output [*]- Remove unnecessary `extern char * optarg;` (this is already provided by unistd.h)Phabric: D555Approved by: jmmv (mentor)MFC after: 2 weeksObtained from: EMC / Isilon Storage Division [*]Submitted by: Casey Peel <[email protected]> [*]Sponsored by: EMC / Isilon Storage Division