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 01f1cb9 commit 0b499b9
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 @@ -626,14 +626,13 @@ int check_strerror_pnetcdf(int my_rank)
*/
int check_strerror_pio(int my_rank)
{
#define NUM_PIO_TRIES 6
#define NUM_PIO_TRIES 5
int errcode[NUM_PIO_TRIES] = {PIO_EBADID,
NC_ENOTNC3, NC4_LAST_ERROR - 1, 0, 1,
NC_ENOTNC3, 0, 1,
PIO_EBADIOTYPE};
const char *expected[NUM_PIO_TRIES] = {"NetCDF: Not a valid ID",
"NetCDF: Attempting netcdf-3 operation on netcdf-4 file",
"Unknown Error: Unrecognized error code", "No error",
nc_strerror(1), "Bad IO type"};
"No error", nc_strerror(1), "Bad IO type"};
int ret;

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

0 comments on commit 0b499b9

Please sign in to comment.