Added a new test.

This commit is contained in:
Ward Fisher 2015-05-11 15:01:31 -06:00
parent ee3daa3267
commit 659172816b
2 changed files with 10 additions and 5 deletions

View File

@ -1,14 +1,14 @@
# Some extra tests
SET(NC4_TESTS tst_dims tst_dims2 tst_dims3 tst_files tst_files4 tst_vars
SET(NC4_TESTS tst_dims tst_dims2 tst_dims3 tst_files tst_files4 tst_vars
tst_varms tst_unlim_vars tst_converts tst_converts2 tst_grps tst_grps2
tst_compounds tst_compounds2 tst_compounds3 tst_opaques tst_strings
tst_strings2 tst_interops tst_interops4 tst_interops6
tst_enums tst_coords tst_coords2 tst_coords3 tst_vars3 tst_vars4
tst_chunks tst_chunks2 tst_utf8 tst_fills tst_fills2 tst_fillbug
tst_xplatform tst_xplatform2 tst_h_atts2 tst_endian_fill tst_atts
tst_xplatform tst_xplatform2 tst_h_atts2 tst_endian_fill tst_atts
t_type cdm_sea_soundings tst_vl tst_atts1 tst_atts2
tst_vars2 tst_files5 tst_files6 tst_sync tst_h_strbug tst_h_refs
tst_h_scalar tst_rename)
tst_h_scalar tst_rename tst_endian_float)
# Note, renamegroup needs to be compiled before run_grp_rename
build_bin_test(renamegroup)

View File

@ -9,7 +9,7 @@
#include <string.h>
#include <netcdf.h>
#define FILE_NAME "test.nc"
#define FILE_NAME "tst_endian_float.nc"
#define NDIM 10
#define NLON 20
#define DIM_NAME "x"
@ -26,5 +26,10 @@ main()
retval = nc_def_var(ncid, VAR_NAME2, NC_INT, 1, &dimid, &varid2);
retval = nc_def_var_endian(ncid, varid2, NC_ENDIAN_BIG);
retval = nc_close(ncid);
return 0;
/* Force a failure for now, until I can automate the check
programatically that the endianess attribute is properly
stored. */
return 1;
}