| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
| |
rdar://problem/8435794
settings set target.process.output-path does not seem to work
Also change the test case from test_set_output_path to test_set_error_output_path
as it now exercises both setting target.process.error-path and target.process.output-path.
llvm-svn: 124198
|
|
|
|
|
|
|
|
|
| |
lldb2 in:
# Set prompt to 'lldb2'.
self.runCmd("settings set prompt lldb2")
llvm-svn: 122272
|
|
|
|
|
|
|
|
| |
immediately
after the statement it wants to revert the effect of.
llvm-svn: 121813
|
|
|
|
|
|
|
|
|
|
|
| |
o "output1.txt" for test_pass_host_env_vars() test case
o "output2.txt" for test_run_args_and_env_vars_with_dsym() test case
o "output2.txt" for test_run_args_and_env_vars_with_dwarf() test case
and add teardown hook to test_pass_host_env_vars() in order to properly
unset the host environment variables set while running the test case.
llvm-svn: 121811
|
|
|
|
|
|
|
|
|
| |
SettingsCommandTestCase(TestBase)'
which tests the recently added lldb feature of automatically passing the host environment
variables to the launched process.
llvm-svn: 120871
|
|
|
|
| |
llvm-svn: 117148
|
|
|
|
|
|
|
|
|
|
|
|
| |
function
to be run during tearDown() to effect the restore action instead of executing it inline
during the test method, because the test may already fail and bailout before the inline
restore action.
Fix test_set_output_path() and pass_run_args_and_env_vars() to use this mechanism.
llvm-svn: 116881
|
|
|
|
|
|
|
|
| |
target.process.output-path
after running the program.
llvm-svn: 116873
|
|
|
|
|
|
| |
assert messages.
llvm-svn: 116850
|
|
|
|
|
|
| |
TestSettings.test_set_output_path().
llvm-svn: 116847
|
|
|
|
| |
llvm-svn: 116748
|
|
|
|
|
|
|
|
|
| |
should not kick in.
Also add a more useful assert message for test_set_output_path(), which is currently decorated
with @expectedFailure.
llvm-svn: 116718
|
|
|
|
|
|
|
|
| |
assertTrue()
usage to self.expect() which is more descriptive.
llvm-svn: 116115
|
|
|
|
|
|
|
|
|
| |
self.expect()
which is more descriptive. And wrap the file open operation inside a with block
so that close() is automatically called upon exiting the block.
llvm-svn: 116096
|
|
|
|
|
|
|
|
|
| |
list of characters.
Also uncomment the cleanup of "stdout.txt" file as part of the class cleanup routine even though
test_set_output_path() is failing right now.
llvm-svn: 116023
|
|
|
|
|
|
|
|
| |
startstring
for the test case test_set_term_width() after the recent changes.
llvm-svn: 115820
|
|
|
|
|
|
|
|
| |
gone.
Also added "settings set -r prompt" to reset the prompt afterwards.
llvm-svn: 114846
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the parent of Process settings; add 'default-arch' as a
class-wide setting for Target. Replace lldb::GetDefaultArchitecture
with Target::GetDefaultArchitecture & Target::SetDefaultArchitecture.
Add 'use-external-editor' as user setting to Debugger class & update
code appropriately.
Add Error parameter to methods that get user settings, for easier
reporting of bad requests.
Fix various other minor related bugs.
Fix test cases to work with new changes.
llvm-svn: 114352
|
|
|
|
|
|
| |
rdar://problem/8449849
llvm-svn: 114328
|
|
|
|
| |
llvm-svn: 114307
|
|
|
|
|
|
| |
checks that the launched process writes its standard output there.
llvm-svn: 114102
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This will remove the confusion experienced when previous test runs left some
files (both intermediate or by-product as a result of the test).
lldbtest.TestBase defines a classmethod tearDownClass(cls) which invokes the
platform-specific cleanup() function as defined by the plugin; after that, it
invokes a subclass-specific function classCleanup(cls) if defined; and, finally,
it restores the old working directory.
An example of classCleanup(cls) is in settings/TestSettings.py:
@classmethod
def classCleanup(cls):
system(["/bin/sh", "-c", "rm output.txt"])
where it deletes the by-product "output.txt" as a result of running a.out.
llvm-svn: 114058
|
|
|
|
|
|
|
|
|
|
| |
(lldb) settings set process.run-args A B C
(lldb) settings set process.env-vars ["MY_ENV_VAR"]=YES
commands. The main.cpp checks whether A, B, C is passed to main and whether
the $MY_ENV_VAR env variable is defined and outputs the findings to a file.
llvm-svn: 114031
|
|
|
|
|
|
| |
And added a trace output for the stop function name to breakAfterLaunch() method.
llvm-svn: 113251
|
|
|
|
| |
llvm-svn: 113219
|
|
|
|
| |
llvm-svn: 113214
|
|
variable 'prompt'.
llvm-svn: 113211
|