mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
Fix up previous commit
- Apply the logic to the FreeBSD block - Fix a typo with the getconf(1) call that I would have caught, were it not for the fact that I got the blocks wrong. - Consolidate the hardcoded buffer sizes to the NetBSD block. This would have been discovered had I run the test on a system where PATH_MAX != 1024 (I don't have that at my disposal right at this moment). MFC after: 3 weeks MFC with: r318210 Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
8fb58d8b6a
commit
a229b00539
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=318211
|
@ -386,14 +386,15 @@ read_body()
|
|||
{
|
||||
prog="$(atf_get_srcdir)/h_read"
|
||||
|
||||
h_pass "$prog 1024" "echo foo |"
|
||||
# Begin FreeBSD
|
||||
if true; then
|
||||
h_fail "$prog 1027" "echo bar |"
|
||||
MAX_PATH=$(getconf _XOPEN_PATH_MAX) || atf_fail "getconf failed"
|
||||
h_pass "$prog $MAX_PATH" "echo foo |"
|
||||
h_fail "$prog $(( $MAX_PATH + 3 ))" "echo bar |"
|
||||
else
|
||||
# End FreeBSD
|
||||
MAX_PATH=$(getconf _XOPEN_MAX_PATH) || atf_fail "getconf failed"
|
||||
h_fail "$prog $(( $MAX_PATH + 1))" "echo bar |"
|
||||
h_pass "$prog 1024" "echo foo |"
|
||||
h_fail "$prog 1025" "echo bar |"
|
||||
# Begin FreeBSD
|
||||
fi
|
||||
# End FreeBSD
|
||||
|
|
Loading…
Reference in a new issue