tests: check the return value of personality when errno is not set (#6752)
authorEvgeny Vereshchagin <evvers@ya.ru>
Wed, 6 Sep 2017 04:08:04 +0000 (07:08 +0300)
committerMartin Pitt <martinpitt@users.noreply.github.com>
Wed, 6 Sep 2017 04:08:04 +0000 (06:08 +0200)
commit48fa42d4ef1c4175c13203e27b2b458cb94fc42a
treebd68a81f2ab11566872e4c0188e408cf4d4868b3
parent6dd0e05c77284d86d181be002ac06130791332be
tests: check the return value of personality when errno is not set (#6752)

The `personality` wrapper might not set errno, so in that case the return value
should be checked instead.

For details, see
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=e0043e17dfc52fe1702746543127cb4a87232bcd.

Closes #6737.
src/test/test-seccomp.c