1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00
freebsd/contrib/netbsd-tests
Konstantin Belousov 3cc31a047e Fix t_spawnattr test for attributes handling by posix_spawn(3).
Connect it to the build.

The code assumed that SCHED_* constants form a contiguous set of
numbers, remove the assumption by using schedulers[] array in
get_different_scheduler().  This is no-op on FreeBSD, but improves
code portability.

The selection of different priority used the min/max priority range of
the current scheduler class, instead of the priority to be changed to.
The bug caused the test failure.

Remove duplication of POSIX_SPAWN_SETSIGDEF flag and now unused
duplications of MIN/MAX definitions.

Reviewed by:	jilles, pho
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D3533
2015-09-01 12:47:11 +00:00
..
bin Revert r277357 as expr has been enhanced to better detect overflow conditions, 2015-01-28 11:38:12 +00:00
crypto
dev
fs
games Step 1 of eliminating the "games" distribution: Move binaries to /usr/bin; 2015-02-12 05:35:00 +00:00
include Import proper fix for misc/49356 (/usr/include/atf-c/config.h) after atf-c/config.h 2014-11-04 05:02:22 +00:00
ipf
kernel
lib Fix t_spawnattr test for attributes handling by posix_spawn(3). 2015-09-01 12:47:11 +00:00
libexec/ld.elf_so
modules
net
rump
sbin
share
sys/rc
usr.bin
usr.sbin Put mtree test files into a subdirectory. 2014-11-01 11:07:59 +00:00
FREEBSD-upgrade
h_macros.h