This changes the initial stdin of a lit RUN command to be None, so that tools taking input from stdin do not see a zero-length input.
This will prevent issues like that one fixed in commit 720dd81.
Differential D135067
[lit] RUN commands without stdin. csigg on Oct 3 2022, 2:12 AM. Authored by
Details
Diff Detail
Event TimelineComment Actions So what would such a tool see? Would it get an error trying to open stdin, or something else? Needs a test in lit's own test suite. Comment Actions Fix bazel config to actually test lit tests. Create a separate test instead of reusing the shtest-timeout one. Comment Actions A tool reading from stdin would get stdin, not an error and not an empty string (which it did before this change).
Done. Comment Actions Ah. I interpreted that to mean "it will hang waiting for input" and then I see the test expects lit to timeout the test. That works. LGTM Comment Actions Fix clang tests that relied on empty input or accidentally did not provide the input in the RUN directive. |