Add missing ERR Macro

The ERR macro was  missing from a couple tests.
This commit is contained in:
Greg Sjaardema 2018-04-25 09:54:31 -06:00 committed by GitHub
parent d1807582c2
commit 09b0a76a01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,13 +293,13 @@ main(int argc, char **argv)
if (nc_create(FILE_NAME, NC_NETCDF4 | NC_CLOBBER, &ncid)) ERR;
if (nc_def_var(ncid, BORING_NAME, NC_CHAR, 0, NULL, &varid)) ERR;
if (nc_rename_var(ncid, varid, name_utf8)) ERR;
if (nc_inq_varname(ncid, 0, name_in));
if (nc_inq_varname(ncid, 0, name_in)) ERR;
if (!strcmp(name_in, norm_utf8)) ERR;
if (nc_close(ncid)) ERR;
/* Reopen the file and check again. */
if (nc_open(FILE_NAME, NC_NOWRITE, &ncid)) ERR;
if (nc_inq_varname(ncid, 0, name_in));
if (nc_inq_varname(ncid, 0, name_in)) ERR;
if (!strcmp(name_in, norm_utf8)) ERR;
if (nc_close(ncid)) ERR;
}