NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdf-porting] Failing test to open non-netcdf file

NOTE: The netcdf-porting mailing list is no longer active. The list archives are made available for historical reasons.

On 13-09-2011 17:55, Russ Rew wrote:
Joaquim,

Does the file that is being opened exist?
Good guess.
No the file does not exist but note that we are talking of test
program -- "nc_test" --  that ships with the with netcdf package.
The line in question has

err =3D nc_open("nc_test.o", NC_NOWRITE,&ncid);/* should fail */

If I create a dummy "nc_test.o" file than the tests pass.
Yes, this is a non-portable test that should be eliminated or changed.
To trigger the error, the test needed the name of a non-netCDF file, and
used "nc_test.o" because it existed in the same directory on the Unix
systems on which the test was developed.  I suspect there is no file
that we can assume will exist on all platforms to use in this test, so
the test should either create such a file or we should eliminate the
test.  It's not a particularly important test, so to get past it you
could just comment it out.

I'll fix it soon:

   https://www.unidata.ucar.edu/jira/browse/NCF-122

Thanks for reporting this.

--Russ

Russ,

It's no problem that it fails now that we know that it's harmless. I investigated this to find if it had any relation with the crash that I mentioned before. More about it in next mail.

Joaquim



  • 2011 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-porting archives: