threads: don't do rlimit test when running as root
authorRyan Lortie <desrt@desrt.ca>
Thu, 21 Feb 2013 10:19:27 +0000 (10:19 +0000)
committerRyan Lortie <desrt@desrt.ca>
Thu, 21 Feb 2013 10:19:27 +0000 (10:19 +0000)
commitce0ff7c9da6d159669e4aad2e964a56fc915cc7c
tree3148c195af089ebe55e03de70aef08478a7ba3cb
parent9670d06a660cd27a30a339798f4af1ce4c5abb29
threads: don't do rlimit test when running as root

Linux CAP_SYS_RESOURCE overrides RLIMIT_NPROC so we probably shouldn't
test thread creation failure when running the test as root...
glib/tests/thread.c