projects
/
platform
/
core
/
system
/
kdbus-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a90a36e
)
test: correctly set the 'ret' variable
author
Djalal Harouni
<tixxdz@opendz.org>
Wed, 23 Jul 2014 16:34:32 +0000
(17:34 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Thu, 31 Jul 2014 13:48:20 +0000
(15:48 +0200)
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test/test-kdbus-policy.c
patch
|
blob
|
history
diff --git
a/test/test-kdbus-policy.c
b/test/test-kdbus-policy.c
index e3e3e7ec7724bb4a69691366ce93c0ac621902a1..6a39040a58a2fa571f4d3c7d5b6f76ceb87ba542 100644
(file)
--- a/
test/test-kdbus-policy.c
+++ b/
test/test-kdbus-policy.c
@@
-200,7
+200,7
@@
static int kdbus_normal_test(const char *bus, const char *name,
static int kdbus_fork_test(const char *bus, const char *name,
struct conn **conn_db)
{
- int ret;
+ int ret
= 0
;
int status;
pid_t pid;
int test_done = 0;
@@
-241,6
+241,7
@@
child_fail:
ret = waitpid(pid, &status, 0);
if (ret < 0) {
+ ret = -errno;
fprintf(stderr, "error waitpid: %d (%m)\n", ret);
goto out;
}