[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-09-02 Thread Ed Maste via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL312431: Add test case for attach-by-pid from different cwd (authored by emaste). Changed prior to commit: https://reviews.llvm.org/D32522?vs=113067&id=113671#toc Repository: rL LLVM https://reviews.

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-09-02 Thread Ed Maste via Phabricator via lldb-commits
emaste added inline comments. Comment at: packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py:44 +"""Test attach by process id""" +os.mkdir(os.path.join(os.getcwd(),'newdir')) + self.buildProgram('main.cpp',os.path.join(os.g

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-09-02 Thread Ed Maste via Phabricator via lldb-commits
emaste added a comment. Testing this just now I got: FAIL: LLDB (/usr/bin/cc-x86_64) :: test_attach_to_process_from_different_dir_by_id (TestProcessAttach.ProcessAttachTestCase) == ERROR: test_attach_to_process

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-08-29 Thread vignesh balu via Phabricator via lldb-commits
vbalu updated this revision to Diff 113067. vbalu marked 2 inline comments as done. vbalu added a comment. done changes as ssuggested https://reviews.llvm.org/D32522 Files: packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py Index: packages/Python/lldbsuite/

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-08-13 Thread Ed Maste via Phabricator via lldb-commits
emaste added a comment. Ping for two open questions https://reviews.llvm.org/D32522 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-05-30 Thread Ed Maste via Phabricator via lldb-commits
emaste added a comment. Generally LGTM with two questions inline. Comment at: packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py:45 +os.mkdir(os.path.join(os.getcwd(),'newdir')) +self.buildProgram('main.cpp','newdir/proc_attach')

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-05-28 Thread vignesh balu via Phabricator via lldb-commits
vbalu updated this revision to Diff 100579. vbalu added a comment. Modified as suggested. sorry for the delay, i caught up in other work. Please let me know if something goes wrong. https://reviews.llvm.org/D32522 Files: packages/Python/lldbsuite/test/functionalities/process_attach/TestProc

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-05-22 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py:47 +exe = os.path.join('.','newdir','proc_attach') +self.addTearDownHook(lambda: shutil.rmtree(os.path.join(os.getcwd( + -

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-05-19 Thread Ed Maste via Phabricator via lldb-commits
emaste added a comment. Two small nits noted inline, but now the test does not pass without https://reviews.llvm.org/D32271 and does with it. Note that in the "without" case it returned error rather than failing, perhaps related to the path issue I noted? Other than that issue I think this is

Re: [Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-05-09 Thread vignesh balu via lldb-commits
you mean like this "exe = os.path.join('./newdir/','proc_attach')". I can't use "os.getcwd" as it will become the absolute path which we should not use. thanks, vbalu On Wed, May 3, 2017 at 11:51 AM, Zachary Turner wrote: > Can you rewrite the exe path computation to use os.path.join so we're n

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-05-03 Thread vignesh balu via Phabricator via lldb-commits
vbalu updated this revision to Diff 97575. vbalu marked an inline comment as done. vbalu added a comment. modified exe path computation Repository: rL LLVM https://reviews.llvm.org/D32522 Files: packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py Index: p

Re: [Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-05-03 Thread Pavel Labath via lldb-commits
On 3 May 2017 at 07:41, vignesh balu wrote: > you mean like this "exe = os.path.join('./newdir/','proc_attach')". I can't probably something like: os.path.join('.', 'newdir', 'proc_attach') ___ lldb-commits mailing list lldb-commits@lists.llvm.org http:

Re: [Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-05-02 Thread Zachary Turner via lldb-commits
Can you rewrite the exe path computation to use os.path.join so we're not assuming posix syntax? On Tue, May 2, 2017 at 11:11 PM vignesh balu via Phabricator via lldb-commits wrote: > vbalu updated this revision to Diff 97550. > vbalu added a comment. > > Corrected the code. Now this test will fa

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-05-02 Thread vignesh balu via Phabricator via lldb-commits
vbalu updated this revision to Diff 97550. vbalu added a comment. Corrected the code. Now this test will fail without https://reviews.llvm.org/D32271 patch. https://reviews.llvm.org/D32522 Files: packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py Index: pa

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-04-30 Thread Ed Maste via Phabricator via lldb-commits
emaste requested changes to this revision. emaste added a comment. This revision now requires changes to proceed. This test passes even without the change in https://reviews.llvm.org/D32271, presumably because `exe = os.path.join(os.getcwd(), 'newdir/proc_attach')` is providing us with an absolu

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-04-30 Thread Ed Maste via Phabricator via lldb-commits
emaste added inline comments. Comment at: packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py:43 + def test_attach_to_process_frm_different_dir_by_id(self): + """Test attach by process id""" +os.mkdir(os.path.join(os.get

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-04-27 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added a comment. This revision is now accepted and ready to land. Cool. Thank you. https://reviews.llvm.org/D32522 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-04-27 Thread vignesh balu via Phabricator via lldb-commits
vbalu updated this revision to Diff 96878. vbalu added a comment. Removed the changes from test frame work. https://reviews.llvm.org/D32522 Files: packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py Index: packages/Python/lldbsuite/test/functionalities/proce

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-04-26 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Thank you for taking the time to add the test. I'd like to avoid modifying the test framework for the sake of this test, if that is possible. Comment at: packages/Python/lldbsuite/test/lldbtest.py:1487 'EXE': exe_name} +if not os.

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-04-26 Thread vignesh balu via Phabricator via lldb-commits
vbalu created this revision. Adding test case to test the scenario in https://reviews.llvm.org/D3 Repository: rL LLVM https://reviews.llvm.org/D32522 Files: packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py packages/Python/lldbsuite/test/lldbtest.py In