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
..
2015-01-29 15:35:55 +00:00
2015-08-09 05:14:25 +00:00
2015-05-21 05:06:08 +00:00
2015-06-11 17:32:36 +00:00
2015-08-20 21:49:59 +00:00
2015-08-19 00:06:46 +00:00
2015-07-28 18:41:28 +00:00
2015-01-06 22:29:12 +00:00
2015-07-05 15:42:16 +00:00
2015-05-04 21:07:20 +00:00
2015-07-08 23:57:58 +00:00
2015-04-27 12:06:13 +00:00
2015-01-03 23:16:13 +00:00
2015-04-21 01:45:11 +00:00
2015-04-09 18:03:27 +00:00