s4:RPC-ECHO: don't ignore errors in the Sleep test now that we support async rpc...
authorStefan Metzmacher <metze@samba.org>
Sat, 27 Feb 2010 09:16:56 +0000 (10:16 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 1 Mar 2010 17:45:21 +0000 (18:45 +0100)
metze

source4/torture/rpc/echo.c

index 2321500ca52c64857dc982f42c63ccf29b10b8f4..e0ee8a580e2e4933ce65ef50f961a34d3b089ed5 100644 (file)
@@ -289,9 +289,9 @@ static bool test_sleep(struct torture_context *tctx,
                                        torture_comment(tctx, "Slept for %u seconds (reply takes %u.%06u seconds - ok)\n", 
                                                        r[i].out.result, (unsigned int)diff[i].tv_sec, (unsigned int)diff[i].tv_usec);
                                } else {
-                                               torture_comment(tctx, "(Failed) - Not async - Slept for %u seconds (but reply takes %u.%06u seconds)", 
-                                                       r[i].out.result, (unsigned int)diff[i].tv_sec, (unsigned int)diff[i].tv_usec);
-                                       /* TODO: let the test fail here, when we support async rpc on ncacn_np */
+                                       torture_fail(tctx, talloc_asprintf(tctx,
+                                                    "(Failed) - Not async - Slept for %u seconds (but reply takes %u.%06u seconds)\n",
+                                                    r[i].out.result, (unsigned int)diff[i].tv_sec, (unsigned int)diff[i].tv_usec));
                                }
                        }
                }