2
0
mirror of https://github.com/HDFGroup/hdf5.git synced 2025-03-31 17:10:47 +08:00

[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.
This commit is contained in:
Albert Cheng 2002-10-31 08:40:24 -05:00
parent 820f4b6fc6
commit 23457df13d

@ -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;