From 1acafdc6687857f95ce8e284c05049e6cb298df8 Mon Sep 17 00:00:00 2001 From: Ward Fisher Date: Tue, 31 Oct 2017 11:13:05 -0600 Subject: [PATCH] Updated in support of https://github.com/Unidata/netcdf-c/issues/556 --- nc_test/nc_test.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nc_test/nc_test.c b/nc_test/nc_test.c index dbb03b08f..5800c339e 100644 --- a/nc_test/nc_test.c +++ b/nc_test/nc_test.c @@ -145,8 +145,14 @@ main(int argc, char *argv[]) #else continue; #endif - case NC_FORMAT_NETCDF4_CLASSIC: - case NC_FORMAT_NETCDF4: /* actually it's _CLASSIC. */ + + /* Repeated test. See https://github.com/Unidata/netcdf-c/issues/556 for more + information re: the immediate 'continue' */ + case NC_FORMAT_NETCDF4: /* actually it's _CLASSIC. */ + continue; /* loop i */ + + + case NC_FORMAT_NETCDF4_CLASSIC: #ifdef USE_NETCDF4 nc_set_default_format(NC_FORMAT_NETCDF4_CLASSIC, NULL); strcpy(testfile, "nc_test_netcdf4.nc");