summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/rpc/echo.c39
1 files changed, 8 insertions, 31 deletions
diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c
index 13731383ee..ec16a7bcd9 100644
--- a/source4/torture/rpc/echo.c
+++ b/source4/torture/rpc/echo.c
@@ -336,37 +336,14 @@ BOOL torture_rpc_echo(void)
return False;
}
- if (!test_addone(p, mem_ctx)) {
- ret = False;
- }
-
- if (!test_sinkdata(p, mem_ctx)) {
- ret = False;
- }
-
- if (!test_echodata(p, mem_ctx)) {
- ret = False;
- }
-
- if (!test_sourcedata(p, mem_ctx)) {
- ret = False;
- }
-
- if (!test_testcall(p, mem_ctx)) {
- ret = False;
- }
-
- if (!test_testcall2(p, mem_ctx)) {
- ret = False;
- }
-
- if (!test_enum(p, mem_ctx)) {
- ret = False;
- }
-
- if (!test_sleep(p, mem_ctx)) {
- ret = False;
- }
+ ret &= test_addone(p, mem_ctx);
+ ret &= test_sinkdata(p, mem_ctx);
+ ret &= test_echodata(p, mem_ctx);
+ ret &= test_sourcedata(p, mem_ctx);
+ ret &= test_testcall(p, mem_ctx);
+ ret &= test_testcall2(p, mem_ctx);
+ ret &= test_enum(p, mem_ctx);
+ ret &= test_sleep(p, mem_ctx);
printf("\n");