mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
[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
This commit is contained in:
parent
693131fe40
commit
a21f74ce6a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user