summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c21
1 files changed, 16 insertions, 5 deletions
diff --git a/test/h5test.c b/test/h5test.c
index 3c37cf9..8f74e45 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -147,16 +147,27 @@ h5_errors(hid_t estack, void H5_ATTR_UNUSED *client_data)
return 0;
}
+/*-------------------------------------------------------------------------
+ * Function: h5_testing
+ *
+ * Purpose: Prints "Testing" + formatted options to stdout
+ * Used in the TESTING macro
+ *
+ * Return: void
+ *-------------------------------------------------------------------------
+ */
void
h5_testing(const char *fmt, ...)
{
va_list ap;
char buf[62 + 1]; /* room for 62-char field + NUL */
- va_start(ap, fmt);
- vsnprintf(buf, sizeof(buf), fmt, ap);
- va_end(ap);
- printf("Testing %s", buf);
- fflush(stdout);
+
+ HDva_start(ap, fmt);
+ HDvsnprintf(buf, sizeof(buf), fmt, ap);
+ HDva_end(ap);
+
+ HDprintf("Testing %s", buf);
+ HDfflush(stdout);
}
/*-------------------------------------------------------------------------