tst-getcpu: decode errno when sched_getcpu fails
authorMike Frysinger <vapier@gentoo.org>
Sun, 6 May 2012 22:30:15 +0000 (18:30 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 5 Jun 2012 02:22:02 +0000 (22:22 -0400)
commit1214ec8f4c2e8fd105a6d9159b85cf31c0c6c386
treeb1f3024081995e6628b4ec1037086a086a7e9928
parent3cc0cd4c5b3bed6f7d9aff26322d505785e11aa9
tst-getcpu: decode errno when sched_getcpu fails

The tst-getcpu test is failing on ia64 platforms due to sched_getcpu
returning an error.  But the current test only considers -1 when it's
also ENOSYS.  Tweak the logic a bit to make the output clearer.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ChangeLog
sysdeps/unix/sysv/linux/tst-getcpu.c