[lldb-dev] [TestBase.runCmd] Better error message when runCmd fails

Siva Chandra sivachandra at google.com
Fri May 22 15:21:10 PDT 2015


What is the opinion about a change which has this effect when
TestBase.runCmd fails:

Before:
    AssertionError: False is not True : Process is launched successfully

After:
    AssertionError: False is not True : Command 'run a.out' failed.
    >>> error: invalid target, create a target using the 'target create' command
    >>> Process could not be launched successfully

I have posted the change here: http://reviews.llvm.org/D9948. The real
change is only in lldbtest.py. Rest of the files just have
s/RUN_SUCCEEDED/RUN_FAILED.

Thanks,
Siva Chandra



More information about the lldb-dev mailing list