git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37f718c
)
tevent/testsuite: return after torture_fail()
author
Stefan Metzmacher
<metze@samba.org>
Thu, 23 Oct 2014 04:54:10 +0000
(06:54 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 17 May 2018 07:51:45 +0000
(09:51 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tevent/testsuite.c
patch
|
blob
|
history
diff --git
a/lib/tevent/testsuite.c
b/lib/tevent/testsuite.c
index 63abbf2dc1a66af9f6f7cd3b146671b186e45ccc..08aa7588acee9977b5b92a6421e3c50570dc11cd 100644
(file)
--- a/
lib/tevent/testsuite.c
+++ b/
lib/tevent/testsuite.c
@@
-191,8
+191,9
@@
static bool test_event_context(struct torture_context *test,
while (!finished) {
errno = 0;
if (tevent_loop_once(ev_ctx) == -1) {
-
talloc_free
(ev_ctx);
+
TALLOC_FREE
(ev_ctx);
torture_fail(test, talloc_asprintf(test, "Failed event loop %s\n", strerror(errno)));
+ return false;
}
}