summaryrefslogtreecommitdiffstats
path: root/lib/libc/tests
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-09-01 12:47:11 +0000
committerkib <kib@FreeBSD.org>2015-09-01 12:47:11 +0000
commit3d333a281ef6327d1f50235d4d34e8b3478683c1 (patch)
treeda8e32a0575cf9c866856d2ed8e0eba6910a3716 /lib/libc/tests
parent11f241e2c39edf1054cb2192f9b4d6540584cd44 (diff)
downloadFreeBSD-src-3d333a281ef6327d1f50235d4d34e8b3478683c1.zip
FreeBSD-src-3d333a281ef6327d1f50235d4d34e8b3478683c1.tar.gz
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
Diffstat (limited to 'lib/libc/tests')
-rw-r--r--lib/libc/tests/gen/posix_spawn/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/tests/gen/posix_spawn/Makefile b/lib/libc/tests/gen/posix_spawn/Makefile
index a1c9b9e..d2dfa54 100644
--- a/lib/libc/tests/gen/posix_spawn/Makefile
+++ b/lib/libc/tests/gen/posix_spawn/Makefile
@@ -10,9 +10,9 @@ TESTSDIR= ${TESTSBASE}/lib/libc/gen/posix_spawn
BINDIR= ${TESTSDIR}
-# TODO: t_spawnattr (fix from pho@ needs additional review)
NETBSD_ATF_TESTS_C= fileactions_test
NETBSD_ATF_TESTS_C+= spawn_test
+NETBSD_ATF_TESTS_C+= spawnattr_test
PROGS= h_fileactions
PROGS+= h_spawn
OpenPOWER on IntegriCloud