From 65e731cb507549bf555156382f3860bb7e24f8c1 Mon Sep 17 00:00:00 2001 From: ed Date: Wed, 10 Aug 2016 10:52:11 -0600 Subject: [PATCH] removed test that depended on changing netCDF error string --- tests/unit/test_names.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/test_names.c b/tests/unit/test_names.c index 48884eedd82..b9684d03628 100644 --- a/tests/unit/test_names.c +++ b/tests/unit/test_names.c @@ -158,12 +158,12 @@ check_att_name(int my_rank, int ncid, int verbose) int check_strerror(int my_rank, int verbose) { -#define NUM_TRIES 7 +#define NUM_TRIES 6 char errstr[PIO_MAX_NAME + 1]; - int errcode[NUM_TRIES] = {NC2_ERR, PIO_EBADID, + int errcode[NUM_TRIES] = {PIO_EBADID, NC_ENOTNC3, NC4_LAST_ERROR - 1, 0, 1, PIO_EBADIOTYPE}; - const char *expected[NUM_TRIES] = {"Unknown Error", "NetCDF: Not a valid ID", + const char *expected[NUM_TRIES] = {"NetCDF: Not a valid ID", "NetCDF: Attempting netcdf-3 operation on netcdf-4 file", "unknown PIO error", "No error", nc_strerror(1), "Bad IO type"};