From 8b5091168b55cc60205a9090581b5d9b8a5a97bb Mon Sep 17 00:00:00 2001 From: Ed Hartnett Date: Fri, 4 May 2018 08:31:17 -0600 Subject: [PATCH] test development --- tests/cunit/test_darray_fill.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/cunit/test_darray_fill.c b/tests/cunit/test_darray_fill.c index 625bad1e1ba..9edb282eb47 100644 --- a/tests/cunit/test_darray_fill.c +++ b/tests/cunit/test_darray_fill.c @@ -159,8 +159,8 @@ int main(int argc, char **argv) /* Test with and without custom fill values. */ for (int fv = 0; fv < NUM_TEST_CASES_FILLVALUE; fv++) { -#define NUM_TYPES 5 - int test_type[NUM_TYPES] = {PIO_CHAR, PIO_SHORT, PIO_INT, PIO_FLOAT, PIO_DOUBLE}; +#define NUM_TYPES 6 + int test_type[NUM_TYPES] = {PIO_BYTE, PIO_CHAR, PIO_SHORT, PIO_INT, PIO_FLOAT, PIO_DOUBLE}; /* Determine what data to write. Put value of 42 into * array elements that will not get written. Due to @@ -289,6 +289,10 @@ int main(int argc, char **argv) PIO_Offset type_size; void *data_in; + /* Byte type doesn't work with pnetcdf. */ + if (flavor[fmt] == PIO_IOTYPE_PNETCDF && (test_type[t] == PIO_BYTE || test_type[t] == PIO_CHAR)) + continue; + /* Put together filename. */ sprintf(filename, "%s_iotype_%d_rearr_%d_type_%d.nc", TEST_NAME, flavor[fmt], rearranger[r], test_type[t]);