pts: Fix searching for the first non-root user in a number of tests.
authorSascha Wildner <saw@online.de>
Sat, 5 Jun 2010 18:02:36 +0000 (20:02 +0200)
committerSascha Wildner <saw@online.de>
Wed, 17 Jan 2018 10:00:18 +0000 (11:00 +0100)
commitef33a0512d5170be8ec9dab28e785b485060ed79
treeb2f0998c57a1bc2fad17b0f877e9a60a4b5190f4
parent9d7db528c3b09858bbbf0897991207e9beb6d770
pts: Fix searching for the first non-root user in a number of tests.

It's not guaranteed that the first entry after 'root' in /etc/passwd is a
non-root user. In fact, in DragonFly it is 'toor' (also uid 0).

Check for the first user with uid != 0 instead.
15 files changed:
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/mlock/speculative/12-1.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/mlockall/speculative/15-1.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/sched_getparam/6-1.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/sched_getscheduler/7-1.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/sched_setparam/23-6.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/sched_setscheduler/20-1.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/sem_open/3-1.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/sem_unlink/3-1.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/shm_open/26-2.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/shm_open/32-1.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/shm_open/34-1.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/shm_unlink/8-1.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/shm_unlink/9-1.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/sigqueue/12-1.c
test/contrib/posixtestsuite-1.5.2/conformance/interfaces/sigqueue/3-1.c