projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93a8b3b
)
Fix va_list processing in test_note()
author
Richard Levitte
<levitte@openssl.org>
Sat, 17 Jun 2017 07:54:54 +0000
(09:54 +0200)
committer
Richard Levitte
<levitte@openssl.org>
Sat, 17 Jun 2017 13:52:41 +0000
(15:52 +0200)
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3704)
test/testutil/tests.c
patch
|
blob
|
history
diff --git
a/test/testutil/tests.c
b/test/testutil/tests.c
index 3f66b3e3cd4733bf4e5f2c4d19cf1c2dacb78f08..7a923889d609bdbc9ee1a5ce9918af2084585531 100644
(file)
--- a/
test/testutil/tests.c
+++ b/
test/testutil/tests.c
@@
-137,11
+137,13
@@
void test_error(const char *file, int line, const char *desc, ...)
void test_note(const char *fmt, ...)
{
- va_list ap;
-
if (fmt != NULL) {
+ va_list ap;
+
test_printf_stderr("%*s# ", subtest_level(), "");
+ va_start(ap, fmt);
test_vprintf_stderr(fmt, ap);
+ va_end(ap);
test_printf_stderr("\n");
}
test_flush_stderr();