diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2002-10-31 13:40:24 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2002-10-31 13:40:24 (GMT) |
commit | 23457df13df32e1db53b3ce36abd2ef7ad6d0494 (patch) | |
tree | d303c90c8c1d808dfaadce63df2d6c48cc2ec1f5 /test | |
parent | 820f4b6fc68cbe2b8233e19db211db790263243c (diff) | |
download | hdf5-23457df13df32e1db53b3ce36abd2ef7ad6d0494.zip hdf5-23457df13df32e1db53b3ce36abd2ef7ad6d0494.tar.gz hdf5-23457df13df32e1db53b3ce36abd2ef7ad6d0494.tar.bz2 |
[svn-r6046] Purpose:
Improvement
Description:
fillval will fail to find the pre-exist data file if it is run
in --srcdir mode without setting $srcdir properly. This is
setup properly in the Makefile but unsuspecting users trying just
./fillval were puzzled by the failure.
Solution:
put in a more descriptive error message with a possible remedy.
Platforms tested:
Modi4 only since this is just adding a printf statment.
Diffstat (limited to 'test')
-rw-r--r-- | test/fillval.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/fillval.c b/test/fillval.c index 8f8dcaf..587999a 100644 --- a/test/fillval.c +++ b/test/fillval.c @@ -1274,7 +1274,11 @@ test_compatible(void) } strcat(testfile, FILE_COMPATIBLE); - if((file=H5Fopen(testfile, H5F_ACC_RDONLY, H5P_DEFAULT))<0) goto error; + if ((file=H5Fopen(testfile, H5F_ACC_RDONLY, H5P_DEFAULT))<0) { + printf(" Could not open file %s. Try set $srcdir to point at the " + "source directory of test\n", testfile); + goto error; + } if((dset1=H5Dopen(file, "dset1"))<0) goto error; if ((dcpl1=H5Dget_create_plist(dset1))<0) goto error; |