diff --git a/tests/cunit/run_tests.sh b/tests/cunit/run_tests.sh index 5d5b92f2778..356eee29d3a 100755 --- a/tests/cunit/run_tests.sh +++ b/tests/cunit/run_tests.sh @@ -31,7 +31,7 @@ do fi done -PIO_TESTS_8='test_async_multi2' +PIO_TESTS_8='test_async_multi2 test_async_manyproc' for TEST in $PIO_TESTS_8 do diff --git a/tests/cunit/test_async_manyproc.c b/tests/cunit/test_async_manyproc.c index 212d125d1df..0a0b57f94e6 100644 --- a/tests/cunit/test_async_manyproc.c +++ b/tests/cunit/test_async_manyproc.c @@ -78,20 +78,20 @@ int main(int argc, char **argv) { for (int i = 0; i < num_iotypes; i++) { - /* char filename[NC_MAX_NAME + 1]; /\* Test filename. *\/ */ - /* /\* Ranks 0, 1, 2 are IO. 3, 4 are the first */ - /* * computation component. 5, 6 are the second. *\/ */ - /* int my_comp_idx = my_rank < NUM_IO_PROCS + NUM_COMP_PROCS ? 0 : 1; /\* Index in iosysid array. *\/ */ - - /* /\* Create sample file. *\/ */ - /* if ((ret = create_nc_sample_3(iosysid[my_comp_idx], iotype[i], my_rank, my_comp_idx, */ - /* filename, TEST_NAME, 0, 0, 0))) */ - /* ERR(ret); */ - - /* /\* Check the file for correctness. *\/ */ - /* if ((ret = check_nc_sample_3(iosysid[my_comp_idx], iotype[i], my_rank, my_comp_idx, */ - /* filename, 0, 0, 0))) */ - /* ERR(ret); */ + char filename[NC_MAX_NAME + 1]; /* Test filename. */ + /* Ranks 0, 1, 2 are IO. 3, 4 are the first + * computation component. 5, 6 are the second. */ + int my_comp_idx = my_rank < NUM_IO_PROCS + NUM_COMP_PROCS ? 0 : 1; /* Index in iosysid array. */ + + /* Create sample file. */ + if ((ret = create_nc_sample_3(iosysid[my_comp_idx], iotype[i], my_rank, my_comp_idx, + filename, TEST_NAME, 0, 0, 0))) + ERR(ret); + + /* Check the file for correctness. */ + if ((ret = check_nc_sample_3(iosysid[my_comp_idx], iotype[i], my_rank, my_comp_idx, + filename, 0, 0, 0))) + ERR(ret); } /* next netcdf iotype */ /* Finalize the IO system. Only call this from the computation tasks. */