aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-10-29 08:16:32 +0100
committerAndreas Schneider <asn@samba.org>2015-10-29 08:16:32 +0100
commit625802d1049a2d59a61acfab52d753134a0f1fed (patch)
tree2da1086632b7634273b8256fb4de4a741efe4e36
parentf0a2720817d5d340ebda554939d303c282359be1 (diff)
downloaduid_wrapper-625802d1049a2d59a61acfab52d753134a0f1fed.tar.gz
uid_wrapper-625802d1049a2d59a61acfab52d753134a0f1fed.tar.xz
uid_wrapper-625802d1049a2d59a61acfab52d753134a0f1fed.zip
tests: Add checks for return values in test_thread_setreuid
CID #131817 Signed-off-by: Andreas Schneider <asn@samba.org>
-rw-r--r--tests/test_thread_setreuid.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_thread_setreuid.c b/tests/test_thread_setreuid.c
index 7679a96..4b40f7b 100644
--- a/tests/test_thread_setreuid.c
+++ b/tests/test_thread_setreuid.c
@@ -49,8 +49,10 @@ static void *syscall_setreuid(void *arg)
assert_int_equal(u, eu);
rc = syscall(SYS_setreuid, -1, 0);
+ assert_return_code(rc, errno);
}
rc = syscall(SYS_setreuid, -1, 666);
+ assert_return_code(rc, errno);
return NULL;
}