By default, Flang outputs 'Fortran STOP' as part of the STOP statement,
and sometimes also warnings about signaling exceptions, which are
platform-dependent. This output will cause test failures, but it can be
suppressed by setting the environment variable NO_STOP_MESSAGE=1. This
patch makes sure that llvm-lit forwards the NO_STOP_MESSAGE variable to
the tests if it is set in the environment.
Details
Details
Diff Detail
Diff Detail
- Repository
- rT test-suite
Event Timeline
Comment Actions
This is an alternative to https://reviews.llvm.org/D126279
I personally prefer the other patch, for reasons which I've explained there.
If we go with this approach, I'll also send a patch to the docs to document the need for setting this environment variable.
Comment Actions
This solution looks reasonable for stop messages. I presume it kicks in when running individual tests as well as the suite.
Perhaps we can change the default settings for flang not to announce the signaling exceptions? I am not sure if this change would be to the driver or the runtime. Perhaps someone else can weigh in?