[Lldb-commits] [PATCH] Fix for PR25300

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 3 07:38:16 PST 2015


Hi,

Looks good, but I'd like to avoid adding new "not remote ready" tests
to the test suite. Your test looks like it should be easy to fix --
the only problem there is the stdout redirection. If you *don't*
redirect the output, you should be able to access the stdout via
self.process.GetSTDOUT() and verify that. Alternatively, you can have
the inferior check the environment variable and set the exit status
based on that.

pl



On 3 November 2015 at 06:43, Tim Northover <t.p.northover at gmail.com> wrote:
> On 26 October 2015 at 01:49, Pavel Labath <labath at google.com> wrote:
>> For the testing, I would try writing a test which sets some
>> environment variable, runs the inferior and has the inferior verify
>> that the variable was passed correctly. You can model this based on
>> some simple test in the test/ directory. TestFdLeak is the first that
>> comes to mind.
>
> Thanks, I've done that in the attached patch, which is the
> QEnvironmentHex fix. It seemed from comments on PR25300 that the other
> fix was incomplete and probably needed more thought.
>
> OK to commit this one?
>
> Cheers.
>
> Tim.


More information about the lldb-commits mailing list