diff --git a/tests/cunit/test_async_1d.c b/tests/cunit/test_async_1d.c index 212def42ab5..7b33d63084d 100644 --- a/tests/cunit/test_async_1d.c +++ b/tests/cunit/test_async_1d.c @@ -130,20 +130,21 @@ int main(int argc, char **argv) /* Read the data. */ if ((ret = PIOc_setframe(ncid, 0, 0))) ERR(ret); - /* if ((ret = PIOc_read_darray(ncid, 0, ioid, MAPLEN, &data_in))) */ - /* ERR(ret); */ + if ((ret = PIOc_read_darray(ncid, 0, ioid, MAPLEN, &data_in))) + ERR(ret); + if (data_in != data) ERR(ERR_WRONG); /* Close the file. */ if ((ret = PIOc_closefile(ncid))) ERR(ret); - /* Free the decomposition. */ - if ((ret = PIOc_freedecomp(iosysid, ioid))) - ERR(ret); + /* /\* Free the decomposition. *\/ */ + /* if ((ret = PIOc_freedecomp(iosysid, ioid))) */ + /* ERR(ret); */ - /* Shut down the IO system. */ - if ((ret = PIOc_finalize(iosysid))) - ERR(ret); + /* /\* Shut down the IO system. *\/ */ + /* if ((ret = PIOc_finalize(iosysid))) */ + /* ERR(ret); */ } printf("%d %s SUCCESS!!\n", my_rank, TEST_NAME);