diff options
author | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-12-08 20:56:28 (GMT) |
---|---|---|
committer | Mike McGreevy <mamcgree@hdfgroup.org> | 2010-12-08 20:56:28 (GMT) |
commit | 25486d50895fa4a30809d289b9aff4de583a9b84 (patch) | |
tree | e671da73eed839a04261cb17a6604ef21da6a5ee /src/H5FDsec2.c | |
parent | fc38cc4d36abdf26d48ba6bb778702d30bee45b0 (diff) | |
download | hdf5-25486d50895fa4a30809d289b9aff4de583a9b84.zip hdf5-25486d50895fa4a30809d289b9aff4de583a9b84.tar.gz hdf5-25486d50895fa4a30809d289b9aff4de583a9b84.tar.bz2 |
[svn-r19879] Purpose:
Improve portability of flushrefresh test.
Description:
The flush/refresh API test was hanging on linew because
Solaris's 'date' tool does not recognize the "+%s" option,
which returns time since the epoch on other UNIXes.
There doesn't seem to be a good way to unify the tools,
however, Perl can be easily used for this function. I've
modified configure to always check for the existence of
Perl (previously it only did so if GNU compilers were being
used), and the flush/refresh test script now uses perl to
perform this timestamping functionality rather than date,
by default. (if Perl is not detected by configure, the
script will use date as it did prior to this modification).
Fixed a few other compatibility issues w/ Solaris in passing:
- fixed 'head' and 'tail' parameters to be more portable
- avoid passing NULL to an fprintf call in flushrefresh.c
Tested:
- Tested testflushrefresh.sh on jam, linew, heiwa, liberty,
duty, ember, and abe.
Diffstat (limited to 'src/H5FDsec2.c')
0 files changed, 0 insertions, 0 deletions