You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code in these ifdef blocks will never run, because we produce a config.h (and an nfconfig.inc) by using AC_CONFIG_HEADERS() in the configure.ac. This causes defines to end up in the configure file (typically config.h but in this case also nfconfig.inc) instead of as -D defines on the compile command line. But this include file is not included by the test.
(Note the warning, which lead me to this problem. Since the ifdefs don't get defined, the parallel_io() test function is never being run.)
I will fix the problem of the defines not being correctly handled and make sure this test actually passes. Unfortunately just putting in an include of nfconfig.inc causes all kinds of compile errors. I will circle around to this again after dealing with all the easy warnings. ;-)
The text was updated successfully, but these errors were encountered:
This problem also affects f90tst_parallel3.F90 and f90tst_nc4_par.F90. So it looks like most or all of our parallel I/O tests are not really running. ;-(
edhartnett
changed the title
in nf_test/f90tst_parallel.f90 and f90tst_parallel2.f90 code counts of pre-processor defines that are never defined
in nf_test/f90tst_parallel.f90 and f90tst_parallel2.f90 code depends on pre-processor defines that are never defined
Mar 2, 2019
edhartnett
changed the title
in nf_test/f90tst_parallel.f90 and f90tst_parallel2.f90 code depends on pre-processor defines that are never defined
most or all parallel I/O tests not really running
Mar 2, 2019
In nf_test/f90tst_parallel.f90 and f90tst_parallel2.f90 we have code that looks like this:
The code in these ifdef blocks will never run, because we produce a config.h (and an nfconfig.inc) by using AC_CONFIG_HEADERS() in the configure.ac. This causes defines to end up in the configure file (typically config.h but in this case also nfconfig.inc) instead of as -D defines on the compile command line. But this include file is not included by the test.
This can be seen from the compile of the test:
(Note the warning, which lead me to this problem. Since the ifdefs don't get defined, the parallel_io() test function is never being run.)
I will fix the problem of the defines not being correctly handled and make sure this test actually passes. Unfortunately just putting in an include of nfconfig.inc causes all kinds of compile errors. I will circle around to this again after dealing with all the easy warnings. ;-)
The text was updated successfully, but these errors were encountered: