summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2001-03-14 21:38:55 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2001-03-14 21:38:55 (GMT)
commita21f74ce6a2b67561bec38281c5328d3e864f534 (patch)
treec233dbcd5b0660be11cbf684ec0c8f297d5ac68f /tools
parent693131fe40f5c4c014abc590be01bacb9ccdedb7 (diff)
downloadhdf5-a21f74ce6a2b67561bec38281c5328d3e864f534.zip
hdf5-a21f74ce6a2b67561bec38281c5328d3e864f534.tar.gz
hdf5-a21f74ce6a2b67561bec38281c5328d3e864f534.tar.bz2
[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
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/h5tools_utils.c6
1 files changed, 6 insertions, 0 deletions
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);
}