Skip to content

Commit

Permalink
fixing over-sensitive error string test_pioc.c
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Mar 14, 2019
1 parent fa5a046 commit 01f1cb9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/cunit/test_pioc.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,11 +539,10 @@ int test_iotypes(int my_rank)
*/
int check_strerror_netcdf(int my_rank)
{
#define NUM_NETCDF_TRIES 4
int errcode[NUM_NETCDF_TRIES] = {PIO_EBADID, NC4_LAST_ERROR - 10, 0, 1};
#define NUM_NETCDF_TRIES 3
int errcode[NUM_NETCDF_TRIES] = {PIO_EBADID, 0, 1};
const char *expected[NUM_NETCDF_TRIES] = {"NetCDF: Not a valid ID",
"Unknown Error: Unrecognized error code", "No error",
nc_strerror(1)};
"No error", nc_strerror(1)};
int ret;

if ((ret = check_error_strings(my_rank, NUM_NETCDF_TRIES, errcode, expected)))
Expand Down

0 comments on commit 01f1cb9

Please sign in to comment.