1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Chase r321920 and r321930 (dev_t being widened)

The layout of st_rdev has changed after this commit, and assumptions made
in the NetBSD tests are no longer valid. Change the hardcoded assumed
values to account for the fact that major/minor are now represented by
64 bits as opposed to the less precise legacy precision of 16 bits.

PR:	221048
Relnotes: st_rdev layout changed; warning about impact of r321920 to
	  downstream consumers
This commit is contained in:
Enji Cooper 2017-08-03 03:43:41 +00:00
parent 3e5fdb98ae
commit acc33f3de9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=321967

View File

@ -41,7 +41,13 @@ ${PACKAGE}FILESDIR= ${TESTSDIR}
PROGS+= h_tools
BINDIR.h_tools= ${TESTSDIR}
# NOTE: dev_t is represented by 64-bits after r321920 (it was 16-bits
# previously).
#
# The old hardcoded values assume the 16-bit layout for <struct stat>.st_rdev .
ATF_TESTS_SH_SED_mknod_test= \
-e '/$${st_rdev} -eq 512/s/512/8589934592/g' \
-e '/$${st_rdev} -eq 514/s/514/8589934594/g' \
-e 's,mknod pipe p,mkfifo pipe,g' \
-e 's,mknod dir/pipe p,mkfifo dir/pipe,g'