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:
e6a30c8
)
test-sync: do a second recv only when SA_RESTART was passed
author
Djalal Harouni
<tixxdz@opendz.org>
Wed, 22 Oct 2014 10:22:45 +0000
(11:22 +0100)
committer
Djalal Harouni
<tixxdz@opendz.org>
Wed, 22 Oct 2014 10:22:45 +0000
(11:22 +0100)
The test was working for all cases, but fix it to only check for the
SA_RESTART case.
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
test/test-sync.c
patch
|
blob
|
history
diff --git
a/test/test-sync.c
b/test/test-sync.c
index ec706d676e0a20d375826adfd9ec997115e0026c..9533fd7e1e42b5982ec153dc3487eae73095fd12 100644
(file)
--- a/
test/test-sync.c
+++ b/
test/test-sync.c
@@
-113,7
+113,7
@@
static int interrupt_sync(struct kdbus_conn *conn_src,
if (WIFSIGNALED(status))
return TEST_ERR;
- if (sa_flags
|
SA_RESTART) {
+ if (sa_flags
&
SA_RESTART) {
/*
* Our SYNC logic do not support SA_RESTART flag, so we
* don't receive the same packet again. We fail with