diff options
author | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2009-06-24 16:26:34 +0000 |
---|---|---|
committer | joseph <joseph@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2009-06-24 16:26:34 +0000 |
commit | 0c0eed75570abfa84c7cebbbe4b2dd14492db0a8 (patch) | |
tree | b61aa9fb0ab9b47e63f5d16c5fa8cb6e823c9bdf /libc/posix/tst-cpucount.c | |
parent | 257ea412cd5f858b64148bef99d4bd6b882c4fb1 (diff) | |
download | eglibc2-0c0eed75570abfa84c7cebbbe4b2dd14492db0a8.tar.gz |
Merge changes between r8519 and r8594 from /fsf/trunk.
git-svn-id: svn://svn.eglibc.org/trunk@8595 7b3dc134-2b1b-0410-93df-9e9f96275f8d
Diffstat (limited to 'libc/posix/tst-cpucount.c')
-rw-r--r-- | libc/posix/tst-cpucount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/posix/tst-cpucount.c b/libc/posix/tst-cpucount.c index fe3cded73..b3691a18d 100644 --- a/libc/posix/tst-cpucount.c +++ b/libc/posix/tst-cpucount.c @@ -1,5 +1,6 @@ #include <sched.h> #include <stdio.h> +#include <sys/param.h> static int do_test (void) @@ -8,7 +9,7 @@ do_test (void) CPU_ZERO (&c); - for (int cnt = 0; cnt < 130; ++cnt) + for (int cnt = 0; cnt < MIN (CPU_SETSIZE, 130); ++cnt) { int n = CPU_COUNT (&c); if (n != cnt) |