llvm-test-suite icon indicating copy to clipboard operation
llvm-test-suite copied to clipboard

[Fortran] Respect NO_STOP_MESSAGE if it is set in the environment

Open tarunprabhu opened this issue 10 months ago • 0 comments

Some tests, particularly the NIST tests require NO_STOP_MESSAGE=1 to be set. This was done unconditionally in Fortran/lit.local.cfg. However, if the test suite is configured to run ONLY the NIST tests, for instance by setting -DTEST_SUITE_SUBDIRS=Fortran/UnitTests/fcvs21_f95, Fortran/lit.local.cfg is not processed and the tests fail. lit also ignores the variable even if it is explicitly set by the user.

This commit addresses the issue and by ensuring that NO_STOP_MESSAGE is added to the environment used when running the tests. Also, NO_STOP_MESSAGE is no longer set unconditionally. If a value was explicitly provided by the user, it will be respected. If no value is provided, it will be set to 1 unconditionally. The README has been substantially expanded to provide more details about this.

tarunprabhu avatar Jan 29 '26 20:01 tarunprabhu