From a21f74ce6a2b67561bec38281c5328d3e864f534 Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Wed, 14 Mar 2001 16:38:55 -0500 Subject: [svn-r3633] Purpose: fixing the format of dumper output for windows test Description: New dumptest includes the feature that an error of the output will be put into stderr in linux On windows, that stderr will not be redirected into the output file and the comparsion between the expected file and the dumper output is not correct. Solution: change fprintf(stderr .....) at h5tool_util.c into fprintf(stdout ......) so that it fits the comparison. Platforms tested: windows 2000 --- tools/lib/h5tools_utils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c index df12a99..a6050ca 100644 --- a/tools/lib/h5tools_utils.c +++ b/tools/lib/h5tools_utils.c @@ -53,8 +53,14 @@ error_msg(const char *progname, const char *fmt, ...) va_start(ap, fmt); fflush(stdout); +#ifdef WIN32 + fprintf(stdout, "%s error: ", progname); + vfprintf(stdout, fmt, ap); +#else fprintf(stderr, "%s error: ", progname); vfprintf(stderr, fmt, ap); +#endif + va_end(ap); } -- cgit v0.12