adding test for attributes
Test attributes.
- $Id: tst_atts3.c 2796 2014-10-28 03:40:29Z wkliao $
+ Ed Hartnett, WK Liao, 1996
*/
#include "config.h"
@@ -849,6 +849,22 @@ main(int argc, char **argv)
if (nc_close(ncid)) ERR;
}
SUMMARIZE_ERR;
+ printf("*** testing double att like in GFDL FMS code...");
+ {
+ int ncid;
+ long long int i = 50;
+
+
+ if (nc_create(FILE_NAME, NC_CLOBBER, &ncid)) ERR;
+ if (nc_put_att_longlong(ncid, NC_GLOBAL, ATT_1, NC_INT64, 1, &i)) ERR;
+ if (nc_close(ncid)) ERR;
+
+ if (nc_open(FILE_NAME, 0, &ncid)) ERR;
+ if (nc_close(ncid)) ERR;
+ }
+
+ SUMMARIZE_ERR;
+
#ifdef TEST_PNETCDF
MPI_Finalize();
#endif
