This converts the CommandScriptImmediateOutput test from a python test using pexpect to a regular lit test.
Details
Diff Detail
Event Timeline
lldb/lit/Commands/CommandScriptImmediateOutput/CommandScriptImmediateOutputFile.test | ||
---|---|---|
5–6 | The original test writes to all files it checks. I believe the idea is to check that the stuff should be there really is, and stuff that shouldn't be isn't. So the new test should probably do that too, and have a negative check that e.g. mode "w" overwrites the initial echoed string. | |
11–16 | Based on some earlier attempts, I think windows will have a problem with the nested quotes. That's why most tests uses -s %s or something like that. Though doing that is a bit tricky here... |
The original test writes to all files it checks. I believe the idea is to check that the stuff should be there really is, and stuff that shouldn't be isn't. So the new test should probably do that too, and have a negative check that e.g. mode "w" overwrites the initial echoed string.