From 27a86387e86863b67ae248e5cfd195995078f7c5 Mon Sep 17 00:00:00 2001 From: Ed Hartnett Date: Thu, 21 Mar 2019 09:26:59 -0600 Subject: [PATCH] clean up of test_perf2.c --- tests/cunit/test_perf2.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/cunit/test_perf2.c b/tests/cunit/test_perf2.c index 08fd304be23..36668776108 100644 --- a/tests/cunit/test_perf2.c +++ b/tests/cunit/test_perf2.c @@ -125,9 +125,6 @@ int test_darray(int iosysid, int ioid, int num_flavors, int *flavor, int my_rank int varid; /* The ID of the netCDF varable. */ int ret; /* Return code. */ PIO_Offset arraylen = EXPECTED_MAPLEN; - struct timeval starttime, endtime; - long long startt, endt; - long long delta; int int_fillvalue = NC_FILL_INT; void *fillvalue = NULL; int *test_data; @@ -163,6 +160,10 @@ int test_darray(int iosysid, int ioid, int num_flavors, int *flavor, int my_rank * available ways. */ for (int fmt = 0; fmt < num_flavors; fmt++) { + struct timeval starttime, endtime; + long long startt, endt; + long long delta; + /* Create the filename. */ /* sprintf(filename, "data_%s_iotype_%d.nc", TEST_NAME, flavor[fmt]); */ sprintf(filename, "data__iotype_.nc");