usgs-coupled / phreeqc3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing database file causes infinite loop in ctest

scharlton2 opened this issue · comments

see https://github.com/usgs-coupled/phreeqc3/actions/runs/3860140795

test (macos-latest):
https://github.com/usgs-coupled/phreeqc3/actions/runs/3860140795/jobs/6580305486#step:6:924

macos-latest was the only job to finish but also created a 3.75 GB artifact. The results weren't posted to
https://my.cdash.org/index.php?project=phreeqc3.
probably rejected due to size.

During ctest runs ANY missing input file has the same problem. ctest must continually send newlines to the process' stdin stream.

To avoid this we should probably add an environment variable check that exits immediately (when files can't be opened) -- see NPP ifdefs.

ie

set_tests_properties(${test_name} PROPERTIES ENVIRONMENT PHREEQC_EARLY_FAIL=ON)